home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ISO-8859 text
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 73 65 | 6e 61 74 6f 72 2d 62 65 |Path: se|nator-be|
|00000010| 64 66 65 6c 6c 6f 77 2e | 6d 69 74 2e 65 64 75 21 |dfellow.|mit.edu!|
|00000020| 66 61 71 73 65 72 76 0a | 46 72 6f 6d 3a 20 6d 69 |faqserv.|From: mi|
|00000030| 6b 65 40 76 6c 73 69 76 | 69 65 2e 74 75 77 69 65 |ke@vlsiv|ie.tuwie|
|00000040| 6e 2e 61 63 2e 61 74 0a | 4e 65 77 73 67 72 6f 75 |n.ac.at.|Newsgrou|
|00000050| 70 73 3a 20 63 6f 6d 70 | 2e 75 6e 69 78 2e 71 75 |ps: comp|.unix.qu|
|00000060| 65 73 74 69 6f 6e 73 2c | 63 6f 6d 70 2e 73 74 64 |estions,|comp.std|
|00000070| 2e 69 6e 74 65 72 6e 61 | 74 2c 63 6f 6d 70 2e 73 |.interna|t,comp.s|
|00000080| 6f 66 74 77 61 72 65 2e | 69 6e 74 65 72 6e 61 74 |oftware.|internat|
|00000090| 69 6f 6e 61 6c 2c 63 6f | 6d 70 2e 6c 61 6e 67 2e |ional,co|mp.lang.|
|000000a0| 63 2c 63 6f 6d 70 2e 77 | 69 6e 64 6f 77 73 2e 78 |c,comp.w|indows.x|
|000000b0| 2c 63 6f 6d 70 2e 73 74 | 64 2e 63 2c 63 6f 6d 70 |,comp.st|d.c,comp|
|000000c0| 2e 61 6e 73 77 65 72 73 | 2c 6e 65 77 73 2e 61 6e |.answers|,news.an|
|000000d0| 73 77 65 72 73 0a 53 75 | 62 6a 65 63 74 3a 20 50 |swers.Su|bject: P|
|000000e0| 72 6f 67 72 61 6d 6d 69 | 6e 67 20 66 6f 72 20 49 |rogrammi|ng for I|
|000000f0| 6e 74 65 72 6e 61 74 69 | 6f 6e 61 6c 69 7a 61 74 |nternati|onalizat|
|00000100| 69 6f 6e 20 46 41 51 0a | 53 75 70 65 72 73 65 64 |ion FAQ.|Supersed|
|00000110| 65 73 3a 20 3c 69 6e 74 | 65 72 6e 61 74 69 6f 6e |es: <int|ernation|
|00000120| 61 6c 69 7a 61 74 69 6f | 6e 2f 70 72 6f 67 72 61 |alizatio|n/progra|
|00000130| 6d 6d 69 6e 67 2d 66 61 | 71 5f 37 39 35 34 36 37 |mming-fa|q_795467|
|00000140| 33 32 30 40 72 74 66 6d | 2e 6d 69 74 2e 65 64 75 |320@rtfm|.mit.edu|
|00000150| 3e 0a 46 6f 6c 6c 6f 77 | 75 70 2d 54 6f 3a 20 63 |>.Follow|up-To: c|
|00000160| 6f 6d 70 2e 75 6e 69 78 | 2e 71 75 65 73 74 69 6f |omp.unix|.questio|
|00000170| 6e 73 2c 63 6f 6d 70 2e | 73 74 64 2e 69 6e 74 65 |ns,comp.|std.inte|
|00000180| 72 6e 61 74 2c 63 6f 6d | 70 2e 73 6f 66 74 77 61 |rnat,com|p.softwa|
|00000190| 72 65 2e 69 6e 74 65 72 | 6e 61 74 69 6f 6e 61 6c |re.inter|national|
|000001a0| 2c 63 6f 6d 70 2e 6c 61 | 6e 67 2e 63 2c 63 6f 6d |,comp.la|ng.c,com|
|000001b0| 70 2e 77 69 6e 64 6f 77 | 73 2e 78 2c 63 6f 6d 70 |p.window|s.x,comp|
|000001c0| 2e 73 74 64 2e 63 0a 44 | 61 74 65 3a 20 31 37 20 |.std.c.D|ate: 17 |
|000001d0| 41 70 72 20 31 39 39 35 | 20 32 30 3a 31 33 3a 31 |Apr 1995| 20:13:1|
|000001e0| 39 20 47 4d 54 0a 4f 72 | 67 61 6e 69 7a 61 74 69 |9 GMT.Or|ganizati|
|000001f0| 6f 6e 3a 20 54 55 20 57 | 69 65 6e 0a 4c 69 6e 65 |on: TU W|ien.Line|
|00000200| 73 3a 20 36 37 34 0a 41 | 70 70 72 6f 76 65 64 3a |s: 674.A|pproved:|
|00000210| 20 6e 65 77 73 2d 61 6e | 73 77 65 72 73 2d 72 65 | news-an|swers-re|
|00000220| 71 75 65 73 74 40 4d 49 | 54 2e 45 44 55 0a 45 78 |quest@MI|T.EDU.Ex|
|00000230| 70 69 72 65 73 3a 20 33 | 31 20 4d 61 79 20 31 39 |pires: 3|1 May 19|
|00000240| 39 35 20 32 30 3a 30 37 | 3a 35 38 20 47 4d 54 0a |95 20:07|:58 GMT.|
|00000250| 4d 65 73 73 61 67 65 2d | 49 44 3a 20 3c 69 6e 74 |Message-|ID: <int|
|00000260| 65 72 6e 61 74 69 6f 6e | 61 6c 69 7a 61 74 69 6f |ernation|alizatio|
|00000270| 6e 2f 70 72 6f 67 72 61 | 6d 6d 69 6e 67 2d 66 61 |n/progra|mming-fa|
|00000280| 71 5f 37 39 38 31 34 39 | 32 37 38 40 72 74 66 6d |q_798149|278@rtfm|
|00000290| 2e 6d 69 74 2e 65 64 75 | 3e 0a 4e 4e 54 50 2d 50 |.mit.edu|>.NNTP-P|
|000002a0| 6f 73 74 69 6e 67 2d 48 | 6f 73 74 3a 20 62 6c 6f |osting-H|ost: blo|
|000002b0| 6f 6d 2d 70 69 63 61 79 | 75 6e 65 2e 6d 69 74 2e |om-picay|une.mit.|
|000002c0| 65 64 75 0a 4d 69 6d 65 | 2d 56 65 72 73 69 6f 6e |edu.Mime|-Version|
|000002d0| 3a 20 31 2e 30 0a 43 6f | 6e 74 65 6e 74 2d 54 79 |: 1.0.Co|ntent-Ty|
|000002e0| 70 65 3a 20 74 65 78 74 | 2f 70 6c 61 69 6e 3b 20 |pe: text|/plain; |
|000002f0| 63 68 61 72 73 65 74 3d | 49 53 4f 2d 38 38 35 39 |charset=|ISO-8859|
|00000300| 2d 31 0a 43 6f 6e 74 65 | 6e 74 2d 54 72 61 6e 73 |-1.Conte|nt-Trans|
|00000310| 66 65 72 2d 45 6e 63 6f | 64 69 6e 67 3a 20 38 62 |fer-Enco|ding: 8b|
|00000320| 69 74 0a 53 75 6d 6d 61 | 72 79 3a 20 54 68 69 73 |it.Summa|ry: This|
|00000330| 20 46 41 51 20 64 69 73 | 63 75 73 73 65 73 20 77 | FAQ dis|cusses w|
|00000340| 72 69 74 69 6e 67 20 70 | 72 6f 67 72 61 6d 73 20 |riting p|rograms |
|00000350| 77 68 69 63 68 20 63 61 | 6e 20 68 61 6e 64 6c 65 |which ca|n handle|
|00000360| 0a 20 20 20 20 20 20 20 | 20 20 64 69 66 66 65 72 |. | differ|
|00000370| 65 6e 74 20 6c 61 6e 67 | 75 61 67 65 20 63 6f 6e |ent lang|uage con|
|00000380| 76 65 6e 74 69 6f 6e 73 | 2f 63 68 61 72 61 63 74 |ventions|/charact|
|00000390| 65 72 20 73 65 74 73 2f | 65 74 63 2e 0a 20 20 20 |er sets/|etc.. |
|000003a0| 20 20 20 20 20 20 41 70 | 70 6c 69 63 61 62 6c 65 | Ap|plicable|
|000003b0| 20 74 6f 20 61 6c 6c 20 | 63 68 61 72 61 63 74 65 | to all |characte|
|000003c0| 72 20 73 65 74 20 65 6e | 63 6f 64 69 6e 67 73 3b |r set en|codings;|
|000003d0| 20 77 69 74 68 20 70 61 | 72 74 69 63 75 6c 61 72 | with pa|rticular|
|000003e0| 20 0a 09 20 65 6d 70 68 | 61 73 69 73 20 6f 6e 20 | .. emph|asis on |
|000003f0| 49 53 4f 2d 38 38 35 39 | 2d 31 2e 0a 58 2d 4c 61 |ISO-8859|-1..X-La|
|00000400| 73 74 2d 55 70 64 61 74 | 65 64 3a 20 31 39 39 35 |st-Updat|ed: 1995|
|00000410| 2f 30 34 2f 30 34 0a 4f | 72 69 67 69 6e 61 74 6f |/04/04.O|riginato|
|00000420| 72 3a 20 66 61 71 73 65 | 72 76 40 62 6c 6f 6f 6d |r: faqse|rv@bloom|
|00000430| 2d 70 69 63 61 79 75 6e | 65 2e 4d 49 54 2e 45 44 |-picayun|e.MIT.ED|
|00000440| 55 0a 58 72 65 66 3a 20 | 73 65 6e 61 74 6f 72 2d |U.Xref: |senator-|
|00000450| 62 65 64 66 65 6c 6c 6f | 77 2e 6d 69 74 2e 65 64 |bedfello|w.mit.ed|
|00000460| 75 20 63 6f 6d 70 2e 75 | 6e 69 78 2e 71 75 65 73 |u comp.u|nix.ques|
|00000470| 74 69 6f 6e 73 3a 39 30 | 35 34 33 20 63 6f 6d 70 |tions:90|543 comp|
|00000480| 2e 73 74 64 2e 69 6e 74 | 65 72 6e 61 74 3a 34 30 |.std.int|ernat:40|
|00000490| 37 32 20 63 6f 6d 70 2e | 73 6f 66 74 77 61 72 65 |72 comp.|software|
|000004a0| 2e 69 6e 74 65 72 6e 61 | 74 69 6f 6e 61 6c 3a 31 |.interna|tional:1|
|000004b0| 38 30 36 20 63 6f 6d 70 | 2e 6c 61 6e 67 2e 63 3a |806 comp|.lang.c:|
|000004c0| 31 33 34 38 36 30 20 63 | 6f 6d 70 2e 77 69 6e 64 |134860 c|omp.wind|
|000004d0| 6f 77 73 2e 78 3a 39 35 | 39 31 30 20 63 6f 6d 70 |ows.x:95|910 comp|
|000004e0| 2e 73 74 64 2e 63 3a 31 | 37 32 38 35 20 63 6f 6d |.std.c:1|7285 com|
|000004f0| 70 2e 61 6e 73 77 65 72 | 73 3a 31 31 32 38 38 20 |p.answer|s:11288 |
|00000500| 6e 65 77 73 2e 61 6e 73 | 77 65 72 73 3a 34 32 31 |news.ans|wers:421|
|00000510| 34 33 0a 0a 0a 41 72 63 | 68 69 76 65 2d 6e 61 6d |43...Arc|hive-nam|
|00000520| 65 3a 20 69 6e 74 65 72 | 6e 61 74 69 6f 6e 61 6c |e: inter|national|
|00000530| 69 7a 61 74 69 6f 6e 2f | 70 72 6f 67 72 61 6d 6d |ization/|programm|
|00000540| 69 6e 67 2d 66 61 71 0a | 50 6f 73 74 69 6e 67 2d |ing-faq.|Posting-|
|00000550| 46 72 65 71 75 65 6e 63 | 79 3a 20 6d 6f 6e 74 68 |Frequenc|y: month|
|00000560| 6c 79 0a 56 65 72 73 69 | 6f 6e 3a 20 31 2e 37 0a |ly.Versi|on: 1.7.|
|00000570| 0a 0a 09 09 20 20 50 72 | 6f 67 72 61 6d 6d 69 6e |.... Pr|ogrammin|
|00000580| 67 20 66 6f 72 20 49 6e | 74 65 72 6e 61 74 69 6f |g for In|ternatio|
|00000590| 6e 61 6c 69 7a 61 74 69 | 6f 6e 0a 0a 0a 0a 44 49 |nalizati|on....DI|
|000005a0| 53 43 4c 41 49 4d 45 52 | 3a 20 54 48 45 20 41 55 |SCLAIMER|: THE AU|
|000005b0| 54 48 4f 52 20 4d 41 4b | 45 53 20 4e 4f 20 57 41 |THOR MAK|ES NO WA|
|000005c0| 52 52 41 4e 54 59 20 4f | 46 20 41 4e 59 20 4b 49 |RRANTY O|F ANY KI|
|000005d0| 4e 44 20 57 49 54 48 20 | 52 45 47 41 52 44 20 54 |ND WITH |REGARD T|
|000005e0| 4f 0a 54 48 49 53 20 4d | 41 54 45 52 49 41 4c 2c |O.THIS M|ATERIAL,|
|000005f0| 20 49 4e 43 4c 55 44 49 | 4e 47 2c 20 42 55 54 20 | INCLUDI|NG, BUT |
|00000600| 4e 4f 54 20 4c 49 4d 49 | 54 45 44 20 54 4f 2c 20 |NOT LIMI|TED TO, |
|00000610| 54 48 45 20 49 4d 50 4c | 49 45 44 20 57 41 52 52 |THE IMPL|IED WARR|
|00000620| 41 4e 54 49 45 53 0a 4f | 46 20 4d 45 52 43 48 41 |ANTIES.O|F MERCHA|
|00000630| 4e 54 41 42 49 4c 49 54 | 59 20 41 4e 44 20 46 49 |NTABILIT|Y AND FI|
|00000640| 54 4e 45 53 53 20 46 4f | 52 20 41 20 50 41 52 54 |TNESS FO|R A PART|
|00000650| 49 43 55 4c 41 52 20 50 | 55 52 50 4f 53 45 2e 0a |ICULAR P|URPOSE..|
|00000660| 0a 4e 6f 74 65 3a 20 4d | 6f 73 74 20 6f 66 20 74 |.Note: M|ost of t|
|00000670| 68 69 73 20 77 61 73 20 | 74 65 73 74 65 64 20 6f |his was |tested o|
|00000680| 6e 20 61 20 53 75 6e 20 | 31 30 2c 20 72 75 6e 6e |n a Sun |10, runn|
|00000690| 69 6e 67 20 53 75 6e 4f | 53 20 34 2e 31 2e 2a 20 |ing SunO|S 4.1.* |
|000006a0| 2d 20 6f 74 68 65 72 0a | 73 79 73 74 65 6d 73 20 |- other.|systems |
|000006b0| 6d 69 67 68 74 20 64 69 | 66 66 65 72 20 73 6c 69 |might di|ffer sli|
|000006c0| 67 68 74 6c 79 0a 0a 54 | 68 69 73 20 46 41 51 20 |ghtly..T|his FAQ |
|000006d0| 64 69 73 63 75 73 73 65 | 73 20 74 6f 70 69 63 73 |discusse|s topics|
|000006e0| 20 72 65 6c 61 74 65 64 | 20 74 6f 20 69 6e 74 65 | related| to inte|
|000006f0| 72 6e 61 74 69 6f 6e 61 | 6c 69 7a 61 74 69 6f 6e |rnationa|lization|
|00000700| 2e 20 53 69 6d 70 6c 65 | 20 69 31 38 6e 0a 73 75 |. Simple| i18n.su|
|00000710| 70 70 6f 72 74 20 66 6f | 72 20 45 75 72 6f 70 65 |pport fo|r Europe|
|00000720| 2c 20 4c 61 74 69 6e 20 | 41 6d 65 72 69 63 61 2c |, Latin |America,|
|00000730| 20 61 6e 64 20 74 68 65 | 20 4d 69 64 64 6c 65 20 | and the| Middle |
|00000740| 45 61 73 74 20 6d 69 67 | 68 74 20 75 73 65 20 6f |East mig|ht use o|
|00000750| 66 0a 74 68 65 20 49 53 | 4f 20 38 38 35 39 2d 58 |f.the IS|O 8859-X|
|00000760| 20 62 61 73 65 64 20 38 | 20 62 69 74 20 63 68 61 | based 8| bit cha|
|00000770| 72 61 63 74 65 72 20 73 | 65 74 73 2e 20 20 46 6f |racter s|ets. Fo|
|00000780| 72 20 77 69 64 65 72 20 | 70 6f 72 74 61 62 69 6c |r wider |portabil|
|00000790| 69 74 79 2c 20 61 0a 73 | 74 61 6e 64 61 72 64 20 |ity, a.s|tandard |
|000007a0| 73 75 63 68 20 61 73 20 | 55 6e 69 63 6f 64 65 20 |such as |Unicode |
|000007b0| 69 73 20 69 6e 20 6f 72 | 64 65 72 2e 0a 0a 54 68 |is in or|der...Th|
|000007c0| 69 73 20 46 41 51 20 64 | 69 73 63 75 73 73 65 73 |is FAQ d|iscusses|
|000007d0| 20 68 6f 77 20 74 6f 20 | 70 72 6f 67 72 61 6d 20 | how to |program |
|000007e0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 73 20 77 68 69 |applicat|ions whi|
|000007f0| 63 68 20 73 75 70 70 6f | 72 74 20 74 68 65 20 75 |ch suppo|rt the u|
|00000800| 73 65 0a 45 75 72 6f 70 | 65 61 6e 20 28 4c 61 74 |se.Europ|ean (Lat|
|00000810| 69 6e 20 41 6d 65 72 69 | 63 61 6e 29 20 6e 61 74 |in Ameri|can) nat|
|00000820| 69 6f 6e 61 6c 20 63 68 | 61 72 61 63 74 65 72 20 |ional ch|aracter |
|00000830| 73 65 74 73 20 6f 6e 20 | 55 4e 49 58 2d 62 61 73 |sets on |UNIX-bas|
|00000840| 65 64 0a 73 79 73 74 65 | 6d 73 20 61 6e 64 20 73 |ed.syste|ms and s|
|00000850| 74 61 6e 64 61 72 64 20 | 43 20 65 6e 76 69 72 6f |tandard |C enviro|
|00000860| 6e 6d 65 6e 74 73 2c 20 | 61 6e 64 20 64 69 73 63 |nments, |and disc|
|00000870| 75 73 73 65 73 20 73 6f | 6d 65 20 63 68 6f 69 63 |usses so|me choic|
|00000880| 65 73 20 77 69 74 68 0a | 72 65 73 70 65 63 74 20 |es with.|respect |
|00000890| 74 6f 20 63 68 61 72 61 | 63 74 65 72 20 73 65 74 |to chara|cter set|
|000008a0| 73 2e 0a 0a 0a 49 4e 54 | 52 4f 44 55 43 54 49 4f |s....INT|RODUCTIO|
|000008b0| 4e 20 0a 0a 4d 6f 73 74 | 20 6f 66 20 74 68 65 20 |N ..Most| of the |
|000008c0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 67 69 76 65 |informat|ion give|
|000008d0| 6e 20 68 65 72 65 20 69 | 73 20 69 6e 64 65 70 65 |n here i|s indepe|
|000008e0| 6e 64 65 6e 74 20 6f 66 | 20 74 68 65 20 63 68 61 |ndent of| the cha|
|000008f0| 72 61 63 74 65 72 0a 65 | 6e 63 6f 64 69 6e 67 20 |racter.e|ncoding |
|00000900| 75 73 65 64 20 28 65 2e | 67 2e 20 44 45 43 20 4d |used (e.|g. DEC M|
|00000910| 43 53 2c 20 49 53 4f 20 | 4c 61 74 69 6e 2d 58 2c |CS, ISO |Latin-X,|
|00000920| 20 65 74 63 2e 29 2c 20 | 62 75 74 20 63 61 6e 20 | etc.), |but can |
|00000930| 62 65 20 61 70 70 6c 69 | 65 64 20 74 6f 0a 61 6e |be appli|ed to.an|
|00000940| 79 20 63 68 61 72 61 63 | 74 65 72 20 73 65 74 2c |y charac|ter set,|
|00000950| 20 70 72 6f 76 69 64 69 | 6e 67 20 74 68 65 20 70 | providi|ng the p|
|00000960| 72 6f 67 72 61 6d 6d 69 | 6e 67 20 65 6e 76 69 72 |rogrammi|ng envir|
|00000970| 6f 6e 6d 65 6e 74 20 68 | 61 73 0a 70 72 6f 76 69 |onment h|as.provi|
|00000980| 73 69 6f 6e 73 20 66 6f | 72 20 74 68 69 73 20 73 |sions fo|r this s|
|00000990| 74 61 6e 64 61 72 64 2e | 0a 0a 0a 31 2e 20 57 68 |tandard.|...1. Wh|
|000009a0| 69 63 68 20 63 6f 64 69 | 6e 67 20 73 68 6f 75 6c |ich codi|ng shoul|
|000009b0| 64 20 49 20 75 73 65 20 | 66 6f 72 20 61 63 63 65 |d I use |for acce|
|000009c0| 6e 74 65 64 20 63 68 61 | 72 61 63 74 65 72 73 3f |nted cha|racters?|
|000009d0| 0a 55 73 65 20 74 68 65 | 20 69 6e 74 65 72 6e 61 |.Use the| interna|
|000009e0| 74 69 6f 6e 61 6c 6c 79 | 20 73 74 61 6e 64 61 72 |tionally| standar|
|000009f0| 64 69 7a 65 64 20 49 53 | 4f 2d 38 38 35 39 2d 31 |dized IS|O-8859-1|
|00000a00| 20 63 68 61 72 61 63 74 | 65 72 20 73 65 74 20 74 | charact|er set t|
|00000a10| 6f 20 74 79 70 65 0a 61 | 63 63 65 6e 74 65 64 20 |o type.a|ccented |
|00000a20| 63 68 61 72 61 63 74 65 | 72 73 2e 20 54 68 69 73 |characte|rs. This|
|00000a30| 20 63 68 61 72 61 63 74 | 65 72 20 73 65 74 20 63 | charact|er set c|
|00000a40| 6f 6e 74 61 69 6e 73 20 | 61 6c 6c 20 63 68 61 72 |ontains |all char|
|00000a50| 61 63 74 65 72 73 0a 6e | 65 63 65 73 73 61 72 79 |acters.n|ecessary|
|00000a60| 20 74 6f 20 74 79 70 65 | 20 28 57 65 73 74 29 20 | to type| (West) |
|00000a70| 45 75 72 6f 70 65 61 6e | 20 6c 61 6e 67 75 61 67 |European| languag|
|00000a80| 65 73 2e 20 54 68 69 73 | 20 65 6e 63 6f 64 69 6e |es. This| encodin|
|00000a90| 67 20 69 73 20 61 6c 73 | 6f 20 74 68 65 0a 70 72 |g is als|o the.pr|
|00000aa0| 65 66 65 72 72 65 64 20 | 65 6e 63 6f 64 69 6e 67 |eferred |encoding|
|00000ab0| 20 6f 6e 20 74 68 65 20 | 49 6e 74 65 72 6e 65 74 | on the |Internet|
|00000ac0| 2e 20 20 49 53 4f 20 38 | 38 35 39 2d 58 20 63 68 |. ISO 8|859-X ch|
|00000ad0| 61 72 61 63 74 65 72 20 | 73 65 74 73 20 75 73 65 |aracter |sets use|
|00000ae0| 20 74 68 65 0a 63 68 61 | 72 61 63 74 65 72 73 20 | the.cha|racters |
|00000af0| 30 78 61 30 20 74 68 72 | 6f 75 67 68 20 30 78 66 |0xa0 thr|ough 0xf|
|00000b00| 66 20 74 6f 20 72 65 70 | 72 65 73 65 6e 74 20 6e |f to rep|resent n|
|00000b10| 61 74 69 6f 6e 61 6c 20 | 63 68 61 72 61 63 74 65 |ational |characte|
|00000b20| 72 73 2c 20 77 68 69 6c | 65 0a 74 68 65 20 63 68 |rs, whil|e.the ch|
|00000b30| 61 72 61 63 74 65 72 73 | 20 69 6e 20 74 68 65 20 |aracters| in the |
|00000b40| 30 78 32 30 2d 30 78 37 | 66 20 72 61 6e 67 65 20 |0x20-0x7|f range |
|00000b50| 61 72 65 20 74 68 6f 73 | 65 20 75 73 65 64 20 69 |are thos|e used i|
|00000b60| 6e 20 74 68 65 20 55 53 | 2d 41 53 43 49 49 0a 28 |n the US|-ASCII.(|
|00000b70| 49 53 4f 20 36 34 36 29 | 20 63 68 61 72 61 63 74 |ISO 646)| charact|
|00000b80| 65 72 20 73 65 74 2e 20 | 20 54 68 75 73 2c 20 41 |er set. | Thus, A|
|00000b90| 53 43 49 49 20 74 65 78 | 74 20 69 73 20 61 20 70 |SCII tex|t is a p|
|00000ba0| 72 6f 70 65 72 20 73 75 | 62 73 65 74 20 6f 66 20 |roper su|bset of |
|00000bb0| 61 6c 6c 0a 49 53 4f 20 | 38 38 35 39 2d 58 20 63 |all.ISO |8859-X c|
|00000bc0| 68 61 72 61 63 74 65 72 | 20 73 65 74 73 2e 20 20 |haracter| sets. |
|00000bd0| 0a 0a 54 68 65 20 63 68 | 61 72 61 63 74 65 72 73 |..The ch|aracters|
|00000be0| 20 30 78 38 30 20 74 68 | 72 6f 75 67 68 20 30 78 | 0x80 th|rough 0x|
|00000bf0| 39 66 20 61 72 65 20 65 | 61 72 6d 61 72 6b 65 64 |9f are e|armarked|
|00000c00| 20 61 73 20 65 78 74 65 | 6e 64 65 64 20 63 6f 6e | as exte|nded con|
|00000c10| 74 72 6f 6c 0a 63 68 72 | 61 63 74 65 72 73 2c 20 |trol.chr|acters, |
|00000c20| 61 6e 64 20 61 72 65 20 | 6e 6f 74 20 75 73 65 64 |and are |not used|
|00000c30| 20 66 6f 72 20 65 6e 63 | 6f 64 69 6e 67 20 63 68 | for enc|oding ch|
|00000c40| 61 72 61 63 74 65 72 73 | 2e 20 20 54 68 65 73 65 |aracters|. These|
|00000c50| 20 63 68 61 72 61 63 74 | 65 72 73 0a 61 72 65 20 | charact|ers.are |
|00000c60| 6e 6f 74 20 63 75 72 72 | 65 6e 74 6c 79 20 75 73 |not curr|ently us|
|00000c70| 65 64 20 74 6f 20 73 70 | 65 63 69 66 79 20 61 6e |ed to sp|ecify an|
|00000c80| 79 74 68 69 6e 67 2e 20 | 20 41 20 70 72 61 63 74 |ything. | A pract|
|00000c90| 69 63 61 6c 20 72 65 61 | 73 6f 6e 20 66 6f 72 0a |ical rea|son for.|
|00000ca0| 74 68 69 73 20 69 73 20 | 69 6e 74 65 72 6f 70 65 |this is |interope|
|00000cb0| 72 61 62 69 6c 69 74 79 | 20 77 69 74 68 20 37 20 |rability| with 7 |
|00000cc0| 62 69 74 20 64 65 76 69 | 63 65 73 20 28 6f 72 20 |bit devi|ces (or |
|00000cd0| 77 68 65 6e 20 74 68 65 | 20 38 74 68 20 62 69 74 |when the| 8th bit|
|00000ce0| 20 67 65 74 73 0a 73 74 | 72 69 70 70 65 64 20 62 | gets.st|ripped b|
|00000cf0| 79 20 66 61 75 6c 74 79 | 20 73 6f 66 74 77 61 72 |y faulty| softwar|
|00000d00| 65 29 2e 20 20 44 65 76 | 69 63 65 73 20 77 6f 75 |e). Dev|ices wou|
|00000d10| 6c 64 20 74 68 65 6e 20 | 69 6e 74 65 72 70 72 65 |ld then |interpre|
|00000d20| 74 20 74 68 65 20 63 68 | 61 72 61 63 74 65 72 0a |t the ch|aracter.|
|00000d30| 61 73 20 73 6f 6d 65 20 | 63 6f 6e 74 72 6f 6c 20 |as some |control |
|00000d40| 63 68 61 72 61 63 74 65 | 72 20 61 6e 64 20 70 75 |characte|r and pu|
|00000d50| 74 20 74 68 65 20 64 65 | 76 69 63 65 20 69 6e 20 |t the de|vice in |
|00000d60| 61 6e 20 75 6e 64 65 66 | 69 6e 65 64 20 73 74 61 |an undef|ined sta|
|00000d70| 74 65 2e 0a 28 57 68 65 | 6e 20 74 68 65 20 38 74 |te..(Whe|n the 8t|
|00000d80| 68 20 62 69 74 20 67 65 | 74 73 20 73 74 72 69 70 |h bit ge|ts strip|
|00000d90| 70 65 64 20 66 72 6f 6d | 20 74 68 65 20 63 68 61 |ped from| the cha|
|00000da0| 72 61 63 74 65 72 73 20 | 61 74 20 30 78 61 30 20 |racters |at 0xa0 |
|00000db0| 74 6f 20 30 78 66 66 2c | 20 61 0a 77 72 6f 6e 67 |to 0xff,| a.wrong|
|00000dc0| 20 63 68 61 72 61 63 74 | 65 72 20 69 73 20 72 65 | charact|er is re|
|00000dd0| 70 72 65 73 65 6e 74 65 | 64 2c 20 62 75 74 20 74 |presente|d, but t|
|00000de0| 68 69 73 20 63 61 6e 6e | 6f 74 20 63 68 61 6e 67 |his cann|ot chang|
|00000df0| 65 20 74 68 65 20 73 74 | 61 74 65 20 6f 66 20 61 |e the st|ate of a|
|00000e00| 0a 74 65 72 6d 69 6e 61 | 6c 20 6f 72 20 6f 74 68 |.termina|l or oth|
|00000e10| 65 72 20 64 65 76 69 63 | 65 2e 29 0a 0a 54 68 69 |er devic|e.)..Thi|
|00000e20| 73 20 63 68 61 72 61 63 | 74 65 72 20 73 65 74 20 |s charac|ter set |
|00000e30| 69 73 20 61 6c 73 6f 20 | 75 73 65 64 20 62 79 20 |is also |used by |
|00000e40| 41 6d 69 67 61 44 4f 53 | 2c 20 4d 53 2d 57 69 6e |AmigaDOS|, MS-Win|
|00000e50| 64 6f 77 73 2c 20 56 4d | 53 20 28 44 45 43 20 4d |dows, VM|S (DEC M|
|00000e60| 43 53 0a 69 73 20 70 72 | 61 63 74 69 63 61 6c 6c |CS.is pr|acticall|
|00000e70| 79 20 65 71 75 69 76 61 | 6c 65 6e 74 20 74 6f 20 |y equiva|lent to |
|00000e80| 49 53 4f 20 38 38 35 39 | 2d 31 29 20 61 6e 64 20 |ISO 8859|-1) and |
|00000e90| 28 70 72 61 63 74 69 63 | 61 6c 6c 79 20 61 6c 6c |(practic|ally all|
|00000ea0| 29 20 55 4e 49 58 0a 69 | 6d 70 6c 65 6d 65 6e 74 |) UNIX.i|mplement|
|00000eb0| 61 74 69 6f 6e 73 2e 20 | 20 4d 53 2d 44 4f 53 20 |ations. | MS-DOS |
|00000ec0| 6e 6f 72 6d 61 6c 6c 79 | 20 75 73 65 73 20 61 20 |normally| uses a |
|00000ed0| 64 69 66 66 65 72 65 6e | 74 20 63 68 61 72 61 63 |differen|t charac|
|00000ee0| 74 65 72 20 73 65 74 20 | 61 6e 64 0a 69 73 20 6e |ter set |and.is n|
|00000ef0| 6f 74 20 63 6f 6d 70 61 | 74 69 62 6c 65 20 77 69 |ot compa|tible wi|
|00000f00| 74 68 20 74 68 69 73 20 | 63 68 61 72 61 63 74 65 |th this |characte|
|00000f10| 72 20 73 65 74 2e 20 28 | 49 74 20 63 61 6e 2c 20 |r set. (|It can, |
|00000f20| 68 6f 77 65 76 65 72 2c | 20 62 65 0a 74 72 61 6e |however,| be.tran|
|00000f30| 73 6c 61 74 65 64 20 74 | 6f 20 74 68 69 73 20 66 |slated t|o this f|
|00000f40| 6f 72 6d 61 74 20 77 69 | 74 68 20 76 61 72 69 6f |ormat wi|th vario|
|00000f50| 75 73 20 74 6f 6f 6c 73 | 2e 20 53 65 65 20 73 65 |us tools|. See se|
|00000f60| 63 74 69 6f 6e 20 35 2e | 29 0a 0a 46 6f 6f 74 6e |ction 5.|)..Footn|
|00000f70| 6f 74 65 3a 20 53 75 70 | 70 6f 73 65 64 6c 79 2c |ote: Sup|posedly,|
|00000f80| 20 49 42 4d 20 63 6f 64 | 65 20 70 61 67 65 20 38 | IBM cod|e page 8|
|00000f90| 31 39 20 69 73 20 66 75 | 6c 6c 79 20 49 53 4f 20 |19 is fu|lly ISO |
|00000fa0| 38 38 35 39 2d 31 20 63 | 6f 6d 70 6c 69 61 6e 74 |8859-1 c|ompliant|
|00000fb0| 2e 0a 0a 0a 49 53 4f 20 | 38 38 35 39 2d 31 20 73 |....ISO |8859-1 s|
|00000fc0| 75 70 70 6f 72 74 73 20 | 74 68 65 20 66 6f 6c 6c |upports |the foll|
|00000fd0| 6f 77 69 6e 67 20 6c 61 | 6e 67 75 61 67 65 73 3a |owing la|nguages:|
|00000fe0| 0a 41 66 72 69 6b 61 61 | 6e 73 2c 20 42 61 73 71 |.Afrikaa|ns, Basq|
|00000ff0| 75 65 2c 20 43 61 74 61 | 6c 61 6e 2c 20 44 61 6e |ue, Cata|lan, Dan|
|00001000| 69 73 68 2c 20 44 75 74 | 63 68 2c 20 45 6e 67 6c |ish, Dut|ch, Engl|
|00001010| 69 73 68 2c 20 46 61 65 | 72 6f 65 73 65 2c 20 46 |ish, Fae|roese, F|
|00001020| 69 6e 6e 69 73 68 2c 0a | 46 72 65 6e 63 68 2c 20 |innish,.|French, |
|00001030| 47 61 6c 69 63 69 61 6e | 2c 20 47 65 72 6d 61 6e |Galician|, German|
|00001040| 2c 20 49 63 65 6c 61 6e | 64 69 63 2c 20 49 72 69 |, Icelan|dic, Iri|
|00001050| 73 68 2c 20 49 74 61 6c | 69 61 6e 2c 20 4e 6f 72 |sh, Ital|ian, Nor|
|00001060| 77 65 67 69 61 6e 2c 0a | 50 6f 72 74 75 67 75 65 |wegian,.|Portugue|
|00001070| 73 65 2c 20 53 70 61 6e | 69 73 68 20 61 6e 64 20 |se, Span|ish and |
|00001080| 53 77 65 64 69 73 68 2e | 0a 0a 28 49 74 20 68 61 |Swedish.|..(It ha|
|00001090| 73 20 62 65 65 6e 20 63 | 61 6c 6c 65 64 20 74 6f |s been c|alled to|
|000010a0| 20 6d 79 20 61 74 74 65 | 6e 74 69 6f 6e 20 74 68 | my atte|ntion th|
|000010b0| 61 74 20 41 6c 62 61 6e | 69 61 6e 20 63 61 6e 20 |at Alban|ian can |
|000010c0| 62 65 20 77 72 69 74 74 | 65 6e 20 77 69 74 68 0a |be writt|en with.|
|000010d0| 49 53 4f 20 38 38 35 39 | 2d 31 20 61 6c 73 6f 2e |ISO 8859|-1 also.|
|000010e0| 20 20 48 6f 77 65 76 65 | 72 2c 20 66 72 6f 6d 20 | Howeve|r, from |
|000010f0| 61 20 73 74 61 6e 64 61 | 72 64 73 20 70 6f 69 6e |a standa|rds poin|
|00001100| 74 20 6f 66 20 76 69 65 | 77 2c 20 49 53 4f 20 38 |t of vie|w, ISO 8|
|00001110| 38 35 39 2d 32 0a 69 73 | 20 74 68 65 20 61 70 70 |859-2.is| the app|
|00001120| 72 6f 70 72 69 61 74 65 | 20 63 68 61 72 61 63 74 |ropriate| charact|
|00001130| 65 72 20 73 65 74 20 66 | 6f 72 20 42 61 6c 6b 61 |er set f|or Balka|
|00001140| 6e 20 63 6f 75 6e 74 72 | 69 65 73 2e 29 0a 0a 49 |n countr|ies.)..I|
|00001150| 53 4f 20 38 38 35 39 2d | 31 20 69 73 20 6a 75 73 |SO 8859-|1 is jus|
|00001160| 74 20 6f 6e 65 20 70 61 | 72 74 20 6f 66 20 74 68 |t one pa|rt of th|
|00001170| 65 20 49 53 4f 2d 38 38 | 35 39 20 73 74 61 6e 64 |e ISO-88|59 stand|
|00001180| 61 72 64 2c 20 77 68 69 | 63 68 20 73 70 65 63 69 |ard, whi|ch speci|
|00001190| 66 69 65 73 0a 73 65 76 | 65 72 61 6c 20 63 68 61 |fies.sev|eral cha|
|000011a0| 72 61 63 74 65 72 20 73 | 65 74 73 3a 0a 38 38 35 |racter s|ets:.885|
|000011b0| 39 2d 31 09 45 75 72 6f | 70 65 2c 20 4c 61 74 69 |9-1.Euro|pe, Lati|
|000011c0| 6e 20 41 6d 65 72 69 63 | 61 0a 38 38 35 39 2d 32 |n Americ|a.8859-2|
|000011d0| 20 20 45 61 73 74 65 72 | 6e 20 45 75 72 6f 70 65 | Easter|n Europe|
|000011e0| 0a 38 38 35 39 2d 33 20 | 20 53 45 20 45 75 72 6f |.8859-3 | SE Euro|
|000011f0| 70 65 2f 6d 69 73 63 65 | 6c 6c 61 6e 65 6f 75 73 |pe/misce|llaneous|
|00001200| 20 28 45 73 70 65 72 61 | 6e 74 6f 2c 20 4d 61 6c | (Espera|nto, Mal|
|00001210| 74 65 73 65 2c 20 65 74 | 63 2e 29 20 0a 38 38 35 |tese, et|c.) .885|
|00001220| 39 2d 34 20 20 53 63 61 | 6e 64 69 6e 61 76 69 61 |9-4 Sca|ndinavia|
|00001230| 2f 42 61 6c 74 69 63 20 | 28 6d 6f 73 74 6c 79 20 |/Baltic |(mostly |
|00001240| 63 6f 76 65 72 65 64 20 | 62 79 20 38 38 35 39 2d |covered |by 8859-|
|00001250| 31 20 61 6c 73 6f 29 0a | 38 38 35 39 2d 35 20 20 |1 also).|8859-5 |
|00001260| 43 79 72 69 6c 6c 69 63 | 0a 38 38 35 39 2d 36 20 |Cyrillic|.8859-6 |
|00001270| 20 41 72 61 62 69 63 0a | 38 38 35 39 2d 37 20 20 | Arabic.|8859-7 |
|00001280| 47 72 65 65 6b 20 0a 38 | 38 35 39 2d 38 20 20 48 |Greek .8|859-8 H|
|00001290| 65 62 72 65 77 0a 38 38 | 35 39 2d 39 20 20 4c 61 |ebrew.88|59-9 La|
|000012a0| 74 69 6e 35 2c 20 73 61 | 6d 65 20 61 73 20 38 38 |tin5, sa|me as 88|
|000012b0| 35 39 2d 31 20 65 78 63 | 65 70 74 20 66 6f 72 20 |59-1 exc|ept for |
|000012c0| 54 75 72 6b 69 73 68 20 | 69 6e 73 74 65 61 64 20 |Turkish |instead |
|000012d0| 6f 66 20 49 63 65 6c 61 | 6e 64 69 63 0a 38 38 35 |of Icela|ndic.885|
|000012e0| 39 2d 31 30 20 4c 61 74 | 69 6e 36 2c 20 66 6f 72 |9-10 Lat|in6, for|
|000012f0| 20 4c 61 70 70 69 73 68 | 2f 4e 6f 72 64 69 63 2f | Lappish|/Nordic/|
|00001300| 45 73 6b 69 6d 6f 20 6c | 61 6e 67 75 61 67 65 73 |Eskimo l|anguages|
|00001310| 0a 0a 41 6e 6f 74 68 65 | 72 20 6e 61 73 63 65 6e |..Anothe|r nascen|
|00001320| 74 20 73 74 61 6e 64 61 | 72 64 20 69 73 20 55 4e |t standa|rd is UN|
|00001330| 49 43 4f 44 45 20 28 49 | 53 4f 20 31 30 36 34 36 |ICODE (I|SO 10646|
|00001340| 29 2e 20 20 55 4e 49 43 | 4f 44 45 20 69 73 20 61 |). UNIC|ODE is a|
|00001350| 6e 0a 65 78 74 65 6e 73 | 69 6f 6e 20 6f 66 20 49 |n.extens|ion of I|
|00001360| 53 4f 20 38 38 35 39 2d | 31 20 28 77 68 69 63 68 |SO 8859-|1 (which|
|00001370| 20 69 74 73 65 6c 66 20 | 69 73 20 61 6e 20 65 78 | itself |is an ex|
|00001380| 74 65 6e 73 69 6f 6e 20 | 6f 66 20 55 53 2d 41 53 |tension |of US-AS|
|00001390| 43 49 49 29 20 74 6f 0a | 77 69 64 65 20 63 68 61 |CII) to.|wide cha|
|000013a0| 72 61 63 74 65 72 73 2e | 20 20 54 68 75 73 2c 20 |racters.| Thus, |
|000013b0| 6d 6f 73 74 20 6f 66 20 | 74 68 65 20 77 6f 72 6c |most of |the worl|
|000013c0| 64 27 73 20 6c 61 6e 67 | 75 61 67 65 73 20 28 69 |d's lang|uages (i|
|000013d0| 6e 63 6c 75 64 69 6e 67 | 0a 4a 61 70 61 6e 65 73 |ncluding|.Japanes|
|000013e0| 65 2c 20 4b 6f 72 65 61 | 6e 2c 20 43 68 69 6e 65 |e, Korea|n, Chine|
|000013f0| 73 65 2e 2e 2e 29 20 63 | 61 6e 20 62 65 20 63 6f |se...) c|an be co|
|00001400| 76 65 72 65 64 2e 0a 0a | 55 6e 69 63 6f 64 65 20 |vered...|Unicode |
|00001410| 69 73 20 61 64 76 61 6e | 74 61 67 65 6f 75 73 20 |is advan|tageous |
|00001420| 62 65 63 61 75 73 65 20 | 6f 6e 65 20 63 68 61 72 |because |one char|
|00001430| 61 63 74 65 72 20 73 65 | 74 20 73 75 66 66 69 63 |acter se|t suffic|
|00001440| 65 73 20 74 6f 20 65 6e | 63 6f 64 65 0a 61 6c 6c |es to en|code.all|
|00001450| 20 74 68 65 20 77 6f 72 | 6c 64 27 73 20 6c 61 6e | the wor|ld's lan|
|00001460| 67 75 61 67 65 73 2c 20 | 68 6f 77 65 76 65 72 20 |guages, |however |
|00001470| 76 65 72 79 20 66 65 77 | 20 70 72 6f 67 72 61 6d |very few| program|
|00001480| 73 20 28 61 6e 64 20 65 | 76 65 6e 20 66 65 77 65 |s (and e|ven fewe|
|00001490| 72 0a 6f 70 65 72 61 74 | 69 6e 67 20 73 79 73 74 |r.operat|ing syst|
|000014a0| 65 6d 73 29 20 73 75 70 | 70 6f 72 74 20 77 69 64 |ems) sup|port wid|
|000014b0| 65 20 63 68 61 72 61 63 | 74 65 72 73 2e 20 54 68 |e charac|ters. Th|
|000014c0| 75 73 2c 20 61 20 60 63 | 68 65 61 70 27 20 75 70 |us, a `c|heap' up|
|000014d0| 67 72 61 64 65 0a 66 72 | 6f 6d 20 37 20 62 69 74 |grade.fr|om 7 bit|
|000014e0| 20 55 53 2d 41 53 43 49 | 49 20 6d 69 67 68 74 20 | US-ASCI|I might |
|000014f0| 62 65 20 74 6f 20 6f 6e | 6c 79 20 38 20 62 69 74 |be to on|ly 8 bit|
|00001500| 20 77 69 64 65 20 63 68 | 61 72 61 63 74 65 72 20 | wide ch|aracter |
|00001510| 73 65 74 73 20 28 73 75 | 63 68 0a 61 73 20 74 68 |sets (su|ch.as th|
|00001520| 65 20 49 53 4f 20 38 38 | 35 39 2d 58 29 2e 20 20 |e ISO 88|59-X). |
|00001530| 55 6e 66 6f 72 74 75 6e | 61 74 65 6c 79 2c 20 73 |Unfortun|ately, s|
|00001540| 6f 6d 65 20 70 72 6f 67 | 72 61 6d 6d 65 72 73 20 |ome prog|rammers |
|00001550| 73 74 69 6c 6c 20 69 6e | 73 69 73 74 20 6f 6e 0a |still in|sist on.|
|00001560| 75 73 69 6e 67 20 74 68 | 65 20 60 73 70 61 72 65 |using th|e `spare|
|00001570| 27 20 65 69 67 74 68 20 | 62 69 74 20 66 6f 72 20 |' eigth |bit for |
|00001580| 63 6c 65 76 65 72 20 74 | 72 69 63 6b 73 2c 20 77 |clever t|ricks, w|
|00001590| 68 69 63 68 20 77 69 6c | 6c 20 6d 61 6b 65 0a 63 |hich wil|l make.c|
|000015a0| 6f 6e 76 65 72 73 69 6f | 6e 20 6d 6f 72 65 20 64 |onversio|n more d|
|000015b0| 69 66 66 69 63 75 6c 74 | 2e 0a 0a 0a 46 6f 6f 74 |ifficult|....Foot|
|000015c0| 6e 6f 74 65 3a 20 53 6f | 6d 65 20 70 65 6f 70 6c |note: So|me peopl|
|000015d0| 65 20 68 61 76 65 20 63 | 6f 6d 70 6c 61 69 6e 65 |e have c|omplaine|
|000015e0| 64 20 61 62 6f 75 74 20 | 6d 69 73 73 69 6e 67 20 |d about |missing |
|000015f0| 63 68 61 72 61 63 74 65 | 72 73 2c 0a 20 20 20 20 |characte|rs,. |
|00001600| 20 20 20 20 20 20 65 2e | 67 2e 20 46 72 65 6e 63 | e.|g. Frenc|
|00001610| 68 20 75 73 65 72 73 20 | 61 62 6f 75 74 20 61 20 |h users |about a |
|00001620| 6d 69 73 73 69 6e 67 20 | 27 6f 65 27 2e 20 20 4e |missing |'oe'. N|
|00001630| 6f 74 65 20 74 68 61 74 | 20 6f 65 20 69 73 20 0a |ote that| oe is .|
|00001640| 20 20 20 20 20 20 20 20 | 20 20 6e 6f 74 20 61 20 | | not a |
|00001650| 63 68 61 72 61 63 74 65 | 72 2c 20 62 75 74 20 61 |characte|r, but a|
|00001660| 20 6c 69 67 61 74 75 72 | 65 20 28 61 20 63 6f 6d | ligatur|e (a com|
|00001670| 62 69 6e 61 74 69 6f 6e | 20 6f 66 20 74 77 6f 0a |bination| of two.|
|00001680| 20 20 20 20 20 20 20 20 | 20 20 63 68 61 72 61 63 | | charac|
|00001690| 74 65 72 73 20 66 6f 72 | 20 74 79 70 6f 67 72 61 |ters for| typogra|
|000016a0| 70 68 69 63 61 6c 20 70 | 75 72 70 6f 73 65 73 29 |phical p|urposes)|
|000016b0| 2e 20 20 4c 69 67 61 74 | 75 72 65 73 20 61 72 65 |. Ligat|ures are|
|000016c0| 20 6e 6f 74 20 0a 20 20 | 20 20 20 20 20 20 20 20 | not . | |
|000016d0| 70 61 72 74 20 6f 66 20 | 74 68 65 20 49 53 4f 20 |part of |the ISO |
|000016e0| 38 38 35 39 2d 58 20 73 | 74 61 6e 64 61 72 64 2e |8859-X s|tandard.|
|000016f0| 20 20 28 41 6c 74 68 6f | 75 67 68 20 27 6f 65 27 | (Altho|ugh 'oe'|
|00001700| 20 75 73 65 64 20 74 6f | 20 0a 20 20 20 20 20 20 | used to| . |
|00001710| 20 20 20 20 62 65 20 69 | 6e 20 74 68 65 20 64 72 | be i|n the dr|
|00001720| 61 66 74 20 38 38 35 39 | 2d 31 20 73 74 61 6e 64 |aft 8859|-1 stand|
|00001730| 61 72 64 20 62 65 66 6f | 72 65 20 69 74 20 77 61 |ard befo|re it wa|
|00001740| 73 20 75 6e 6d 61 73 6b | 65 64 20 61 73 0a 20 20 |s unmask|ed as. |
|00001750| 20 20 20 20 20 20 20 20 | 60 6d 65 72 65 27 20 6c | |`mere' l|
|00001760| 69 67 61 74 75 72 65 2e | 29 0a 0a 0a 0a 0a 32 2e |igature.|).....2.|
|00001770| 20 43 68 6f 6f 73 69 6e | 67 20 74 68 65 20 63 68 | Choosin|g the ch|
|00001780| 61 72 61 63 74 65 72 20 | 73 65 74 20 65 6e 63 6f |aracter |set enco|
|00001790| 64 69 6e 67 0a 0a 44 65 | 70 65 6e 64 69 6e 67 20 |ding..De|pending |
|000017a0| 6f 6e 20 79 6f 75 72 20 | 6e 65 65 64 73 2c 20 79 |on your |needs, y|
|000017b0| 6f 75 20 77 69 6c 6c 20 | 70 72 6f 62 61 62 6c 79 |ou will |probably|
|000017c0| 20 77 61 6e 74 20 74 6f | 20 63 68 6f 6f 73 65 20 | want to| choose |
|000017d0| 64 69 66 66 65 72 65 6e | 74 0a 73 6f 6c 75 74 69 |differen|t.soluti|
|000017e0| 6f 6e 73 2e 20 20 41 20 | 71 75 69 63 6b 20 73 68 |ons. A |quick sh|
|000017f0| 6f 74 20 69 31 38 6e 20 | 6f 66 20 55 53 20 70 72 |ot i18n |of US pr|
|00001800| 6f 67 72 61 6d 73 20 6d | 69 67 68 74 20 73 69 6d |ograms m|ight sim|
|00001810| 70 6c 79 20 62 65 20 67 | 6f 69 6e 67 20 74 6f 0a |ply be g|oing to.|
|00001820| 38 20 62 69 74 20 61 6e | 64 20 75 73 65 20 6f 6e |8 bit an|d use on|
|00001830| 65 20 6f 66 20 74 68 65 | 20 49 53 4f 20 38 38 35 |e of the| ISO 885|
|00001840| 39 2d 58 20 63 68 61 72 | 61 63 74 65 72 20 73 65 |9-X char|acter se|
|00001850| 74 73 2e 0a 0a 49 66 20 | 79 6f 75 20 68 61 76 65 |ts...If |you have|
|00001860| 20 61 20 63 68 6f 69 63 | 65 20 61 6e 64 20 73 74 | a choic|e and st|
|00001870| 61 72 74 20 66 72 6f 6d | 20 73 63 72 61 74 63 68 |art from| scratch|
|00001880| 2c 20 79 6f 75 20 6d 69 | 67 68 74 20 77 61 6e 74 |, you mi|ght want|
|00001890| 20 74 6f 0a 63 6f 6e 73 | 69 64 65 72 20 55 6e 69 | to.cons|ider Uni|
|000018a0| 63 6f 64 65 2e 20 20 54 | 68 65 72 65 20 61 72 65 |code. T|here are|
|000018b0| 20 73 65 76 65 72 61 6c | 20 61 73 70 65 63 74 73 | several| aspects|
|000018c0| 20 74 6f 20 63 68 6f 6f | 73 69 6e 67 20 61 20 70 | to choo|sing a p|
|000018d0| 61 72 74 69 63 75 6c 61 | 72 0a 63 68 61 72 61 63 |articula|r.charac|
|000018e0| 74 65 72 20 73 65 74 20 | 28 61 6e 64 20 79 6f 75 |ter set |(and you|
|000018f0| 20 6d 61 79 20 77 61 6e | 74 20 74 6f 20 64 65 63 | may wan|t to dec|
|00001900| 69 64 65 20 6f 6e 20 64 | 69 66 66 65 72 65 6e 74 |ide on d|ifferent|
|00001910| 20 63 68 61 72 61 63 74 | 65 72 20 73 65 74 73 0a | charact|er sets.|
|00001920| 66 6f 72 20 64 69 66 66 | 65 72 65 6e 74 20 70 75 |for diff|erent pu|
|00001930| 72 70 6f 73 65 73 29 3a | 0a 31 29 20 77 68 61 74 |rposes):|.1) what|
|00001940| 20 63 6f 64 65 73 65 74 | 20 73 68 6f 75 6c 64 20 | codeset| should |
|00001950| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |the appl|ication |
|00001960| 72 75 6e 20 69 6e 3f 20 | 20 0a 32 29 20 77 68 61 |run in? | .2) wha|
|00001970| 74 20 63 6f 64 65 73 65 | 74 20 73 68 6f 75 6c 64 |t codese|t should|
|00001980| 20 66 69 6c 65 73 20 62 | 65 20 73 61 76 65 64 20 | files b|e saved |
|00001990| 69 6e 20 0a 33 29 20 77 | 68 61 74 20 63 6f 64 65 |in .3) w|hat code|
|000019a0| 73 65 74 20 69 73 20 75 | 73 65 64 20 61 73 20 6f |set is u|sed as o|
|000019b0| 75 74 70 75 74 20 28 74 | 6f 20 73 63 72 65 65 6e |utput (t|o screen|
|000019c0| 73 20 65 74 63 2e 29 20 | 61 6e 64 20 0a 34 29 20 |s etc.) |and .4) |
|000019d0| 73 68 6f 75 6c 64 20 77 | 69 64 65 20 63 68 61 72 |should w|ide char|
|000019e0| 61 63 74 65 72 73 20 6f | 72 20 6d 75 6c 74 69 2d |acters o|r multi-|
|000019f0| 62 79 74 65 20 63 68 61 | 72 61 63 74 65 72 73 20 |byte cha|racters |
|00001a00| 62 65 20 75 73 65 64 20 | 28 74 68 69 73 0a 20 20 |be used |(this. |
|00001a10| 20 63 68 6f 69 63 65 20 | 6d 61 79 20 62 65 20 64 | choice |may be d|
|00001a20| 69 66 66 65 72 65 6e 74 | 20 66 6f 72 20 65 61 63 |ifferent| for eac|
|00001a30| 68 20 6f 66 20 70 6f 69 | 6e 74 73 20 31 2d 33 29 |h of poi|nts 1-3)|
|00001a40| 0a 0a 46 6f 72 20 65 78 | 61 6d 70 6c 65 2c 20 69 |..For ex|ample, i|
|00001a50| 66 20 70 6f 72 74 61 62 | 69 6c 69 74 79 20 6f 66 |f portab|ility of|
|00001a60| 20 79 6f 75 72 20 66 69 | 6c 65 73 20 61 63 72 6f | your fi|les acro|
|00001a70| 73 73 20 63 75 6c 74 75 | 72 61 6c 20 62 6f 72 64 |ss cultu|ral bord|
|00001a80| 65 72 73 20 69 73 0a 61 | 6e 20 6f 62 6a 65 63 74 |ers is.a|n object|
|00001a90| 69 76 65 2c 20 79 6f 75 | 20 6d 69 67 68 74 20 77 |ive, you| might w|
|00001aa0| 61 6e 74 20 74 6f 20 75 | 73 65 20 73 6f 6d 65 20 |ant to u|se some |
|00001ab0| 66 6f 72 6d 20 6f 66 20 | 55 6e 69 63 6f 64 65 20 |form of |Unicode |
|00001ac0| 65 6e 63 6f 64 69 6e 67 | 20 74 6f 0a 61 63 68 69 |encoding| to.achi|
|00001ad0| 65 76 65 20 74 68 69 73 | 2e 20 20 49 66 20 69 6e |eve this|. If in|
|00001ae0| 74 65 72 61 63 74 69 6f | 6e 20 77 69 74 68 20 6f |teractio|n with o|
|00001af0| 74 68 65 72 20 74 6f 6f | 6c 73 20 69 6e 20 79 6f |ther too|ls in yo|
|00001b00| 75 72 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 20 69 |ur envir|onment i|
|00001b10| 73 0a 74 68 65 20 6d 61 | 69 6e 20 6f 62 6a 65 63 |s.the ma|in objec|
|00001b20| 74 69 76 65 2c 20 61 6e | 64 20 74 68 65 73 65 20 |tive, an|d these |
|00001b30| 74 6f 6f 6c 73 20 75 73 | 65 20 61 6e 20 65 6e 63 |tools us|e an enc|
|00001b40| 6f 64 69 6e 67 20 64 69 | 66 66 65 72 65 6e 74 20 |oding di|fferent |
|00001b50| 66 72 6f 6d 0a 55 6e 69 | 63 6f 64 65 2c 20 74 68 |from.Uni|code, th|
|00001b60| 69 73 20 63 68 61 72 61 | 63 74 65 72 20 73 65 74 |is chara|cter set|
|00001b70| 20 6d 69 67 68 74 20 62 | 65 20 75 73 65 64 20 69 | might b|e used i|
|00001b80| 6e 73 74 65 61 64 2e 20 | 20 0a 0a 55 73 69 6e 67 |nstead. | ..Using|
|00001b90| 20 55 6e 69 63 6f 64 65 | 20 69 6e 74 65 72 6e 61 | Unicode| interna|
|00001ba0| 6c 6c 79 20 62 75 74 20 | 77 72 69 74 69 6e 67 20 |lly but |writing |
|00001bb0| 61 20 64 69 66 66 65 72 | 65 6e 74 20 66 6f 72 6d |a differ|ent form|
|00001bc0| 61 74 20 74 6f 20 66 69 | 6c 65 73 20 6d 61 79 0a |at to fi|les may.|
|00001bd0| 73 6f 75 6e 64 20 66 75 | 6e 6e 79 20 28 65 73 70 |sound fu|nny (esp|
|00001be0| 2e 20 69 66 20 74 68 65 | 20 6f 75 74 70 75 74 20 |. if the| output |
|00001bf0| 66 69 6c 65 20 66 6f 72 | 6d 61 74 20 69 73 20 6f |file for|mat is o|
|00001c00| 6e 6c 79 20 61 20 73 75 | 62 73 65 74 20 6f 66 0a |nly a su|bset of.|
|00001c10| 55 6e 69 63 6f 64 65 29 | 2c 20 62 75 74 20 79 6f |Unicode)|, but yo|
|00001c20| 75 20 77 6f 75 6c 64 20 | 6f 6e 6c 79 20 68 61 76 |u would |only hav|
|00001c30| 65 20 74 6f 20 61 64 61 | 70 74 20 74 68 65 20 66 |e to ada|pt the f|
|00001c40| 69 6c 65 20 77 72 69 74 | 65 20 61 6e 64 20 72 65 |ile writ|e and re|
|00001c50| 61 64 0a 66 75 6e 63 74 | 69 6f 6e 73 20 61 6e 64 |ad.funct|ions and|
|00001c60| 20 74 68 65 20 73 61 6d | 65 20 70 72 6f 67 72 61 | the sam|e progra|
|00001c70| 6d 20 77 69 6c 6c 20 62 | 65 20 61 62 6c 65 20 74 |m will b|e able t|
|00001c80| 6f 20 65 78 65 63 75 74 | 65 20 69 6e 20 61 6c 6c |o execut|e in all|
|00001c90| 0a 63 6f 75 6e 74 72 69 | 65 73 20 79 6f 75 72 20 |.countri|es your |
|00001ca0| 70 72 6f 64 75 63 74 20 | 6d 69 67 68 74 20 62 65 |product |might be|
|00001cb0| 20 75 73 65 64 2e 2e 2e | 29 0a 0a 41 6c 73 6f 2c | used...|)..Also,|
|00001cc0| 20 74 65 72 6d 69 6e 61 | 6c 73 20 61 6e 64 2f 6f | termina|ls and/o|
|00001cd0| 72 20 77 68 69 63 68 20 | 70 72 6f 63 65 73 73 20 |r which |process |
|00001ce0| 55 6e 69 63 6f 64 65 20 | 6d 61 79 20 6e 6f 74 20 |Unicode |may not |
|00001cf0| 62 65 20 61 76 61 69 6c | 61 62 6c 65 20 28 6f 72 |be avail|able (or|
|00001d00| 0a 79 6f 75 20 6d 69 67 | 68 74 20 68 61 76 65 20 |.you mig|ht have |
|00001d10| 74 6f 20 73 75 70 70 6f | 72 74 20 6c 65 67 61 63 |to suppo|rt legac|
|00001d20| 79 20 68 61 72 64 77 61 | 72 65 29 2c 20 73 6f 20 |y hardwa|re), so |
|00001d30| 79 6f 75 20 6d 69 67 68 | 74 20 6e 65 65 64 20 74 |you migh|t need t|
|00001d40| 6f 20 61 64 61 70 74 0a | 74 68 65 20 6f 75 74 70 |o adapt.|the outp|
|00001d50| 75 74 20 66 6f 72 6d 61 | 74 20 74 6f 20 61 20 74 |ut forma|t to a t|
|00001d60| 68 69 72 64 20 73 74 61 | 6e 64 61 72 64 2e 0a 0a |hird sta|ndard...|
|00001d70| 0a 32 2e 20 47 65 74 74 | 69 6e 67 20 79 6f 75 72 |.2. Gett|ing your|
|00001d80| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 20 72 69 67 | environ|ment rig|
|00001d90| 68 74 20 66 6f 72 20 49 | 53 4f 20 38 38 35 39 2d |ht for I|SO 8859-|
|00001da0| 58 0a 54 6f 20 63 6f 6e | 66 69 67 75 72 65 20 79 |X.To con|figure y|
|00001db0| 6f 75 72 20 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 20 |our envi|ronment |
|00001dc0| 73 75 63 68 20 74 68 61 | 74 20 79 6f 75 20 63 61 |such tha|t you ca|
|00001dd0| 6e 20 65 6e 74 65 72 2c | 20 70 72 6f 63 65 73 73 |n enter,| process|
|00001de0| 20 61 6e 64 0a 64 69 73 | 70 6c 61 79 20 38 20 62 | and.dis|play 8 b|
|00001df0| 69 74 20 49 53 4f 20 63 | 68 61 72 61 63 74 65 72 |it ISO c|haracter|
|00001e00| 73 2c 20 63 68 65 63 6b | 20 6f 75 74 20 74 68 65 |s, check| out the|
|00001e10| 20 49 53 4f 2d 38 38 35 | 39 2d 31 20 46 41 51 20 | ISO-885|9-1 FAQ |
|00001e20| 61 76 61 69 6c 61 62 6c | 65 0a 76 69 61 20 61 6e |availabl|e.via an|
|00001e30| 6f 6e 79 6d 6f 75 73 20 | 66 74 70 20 66 72 6f 6d |onymous |ftp from|
|00001e40| 20 66 74 70 2e 76 6c 73 | 69 76 69 65 2e 74 75 77 | ftp.vls|ivie.tuw|
|00001e50| 69 65 6e 2e 61 63 2e 61 | 74 20 69 6e 0a 2f 70 75 |ien.ac.a|t in./pu|
|00001e60| 62 2f 38 62 69 74 2f 46 | 41 51 2d 49 53 4f 2d 38 |b/8bit/F|AQ-ISO-8|
|00001e70| 38 35 39 2d 31 2e 20 20 | 0a 0a 49 66 20 79 6f 75 |859-1. |..If you|
|00001e80| 20 75 73 65 20 61 20 64 | 69 66 66 65 72 65 6e 74 | use a d|ifferent|
|00001e90| 20 65 6e 63 6f 64 69 6e | 67 2c 20 79 6f 75 20 77 | encodin|g, you w|
|00001ea0| 69 6c 6c 20 70 72 6f 62 | 61 62 6c 79 20 61 6c 73 |ill prob|ably als|
|00001eb0| 6f 20 68 61 76 65 20 74 | 6f 0a 63 6f 6e 66 69 67 |o have t|o.config|
|00001ec0| 75 72 65 20 79 6f 75 72 | 20 73 79 73 74 65 6d 20 |ure your| system |
|00001ed0| 74 6f 20 66 75 6c 6c 79 | 20 73 75 70 70 6f 72 74 |to fully| support|
|00001ee0| 20 74 68 61 74 20 65 6e | 63 6f 64 69 6e 67 2e 0a | that en|coding..|
|00001ef0| 0a 0a 0a 33 2e 20 53 65 | 74 74 69 6e 67 20 79 6f |...3. Se|tting yo|
|00001f00| 75 72 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 20 66 |ur envir|onment f|
|00001f10| 6f 72 20 49 53 4f 2d 43 | 20 28 41 4e 53 49 2d 43 |or ISO-C| (ANSI-C|
|00001f20| 29 20 70 72 6f 67 72 61 | 6d 73 0a 54 68 65 20 49 |) progra|ms.The I|
|00001f30| 53 4f 20 43 20 53 74 61 | 6e 64 61 72 64 20 28 41 |SO C Sta|ndard (A|
|00001f40| 4e 53 49 20 43 20 53 74 | 61 6e 64 61 72 64 20 34 |NSI C St|andard 4|
|00001f50| 2e 34 29 20 64 65 66 69 | 6e 65 73 20 73 65 76 65 |.4) defi|nes seve|
|00001f60| 72 61 6c 20 66 75 6e 63 | 74 69 6f 6e 73 20 66 6f |ral func|tions fo|
|00001f70| 72 0a 73 75 70 70 6f 72 | 74 69 6e 67 20 6c 6f 63 |r.suppor|ting loc|
|00001f80| 61 6c 69 7a 61 74 69 6f | 6e 2e 20 54 6f 20 73 65 |alizatio|n. To se|
|00001f90| 74 20 79 6f 75 72 20 69 | 6e 74 65 72 6e 61 74 69 |t your i|nternati|
|00001fa0| 6f 6e 61 6c 20 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 |onal env|ironment|
|00001fb0| 20 6f 6e 0a 70 72 6f 67 | 72 61 6d 20 73 74 61 72 | on.prog|ram star|
|00001fc0| 74 75 70 2c 20 79 6f 75 | 20 73 68 6f 75 6c 64 20 |tup, you| should |
|00001fd0| 6d 61 6b 65 20 6f 6e 65 | 20 6f 72 20 73 65 76 65 |make one| or seve|
|00001fe0| 72 61 6c 20 63 61 6c 6c | 73 20 74 6f 20 74 68 65 |ral call|s to the|
|00001ff0| 20 73 65 74 6c 6f 63 61 | 6c 65 0a 66 75 6e 63 74 | setloca|le.funct|
|00002000| 69 6f 6e 73 2e 20 20 43 | 61 6c 6c 73 20 74 6f 20 |ions. C|alls to |
|00002010| 74 68 69 73 20 66 75 6e | 63 74 69 6f 6e 20 77 69 |this fun|ction wi|
|00002020| 6c 6c 20 70 72 65 64 65 | 74 65 72 6d 69 6e 65 20 |ll prede|termine |
|00002030| 74 68 65 20 72 65 61 63 | 74 69 6f 6e 20 6f 66 0a |the reac|tion of.|
|00002040| 6f 74 68 65 72 20 6c 6f | 63 61 6c 69 7a 61 74 69 |other lo|calizati|
|00002050| 6f 6e 20 66 75 6e 63 74 | 69 6f 6e 73 20 61 63 63 |on funct|ions acc|
|00002060| 6f 72 64 69 6e 67 20 74 | 6f 20 79 6f 75 72 20 6c |ording t|o your l|
|00002070| 61 6e 67 75 61 67 65 2f | 63 6f 75 6e 74 72 79 0a |anguage/|country.|
|00002080| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 2e 0a 0a 54 6f |environm|ent...To|
|00002090| 20 63 6f 6e 66 69 67 75 | 72 65 20 61 20 70 61 72 | configu|re a par|
|000020a0| 74 69 63 75 6c 61 72 20 | 61 73 70 65 63 74 20 6f |ticular |aspect o|
|000020b0| 66 20 79 6f 75 20 65 6e | 76 69 72 6f 6e 6d 65 6e |f you en|vironmen|
|000020c0| 74 2c 20 73 61 79 20 74 | 68 65 20 6e 75 6d 62 65 |t, say t|he numbe|
|000020d0| 72 0a 72 65 70 72 65 73 | 65 6e 74 61 74 69 6f 6e |r.repres|entation|
|000020e0| 2c 20 79 6f 75 20 77 6f | 75 6c 64 20 63 61 6c 6c |, you wo|uld call|
|000020f0| 0a 2d 2d 0a 73 65 74 6c | 6f 63 61 6c 65 20 28 4c |.--.setl|ocale (L|
|00002100| 43 5f 4e 55 4d 45 52 49 | 43 2c 20 22 47 65 72 6d |C_NUMERI|C, "Germ|
|00002110| 61 6e 79 22 29 3b 0a 2d | 2d 0a 0a 54 68 69 73 20 |any");.-|-..This |
|00002120| 63 61 6c 6c 20 77 6f 75 | 6c 64 20 73 65 74 20 61 |call wou|ld set a|
|00002130| 6c 6c 20 6e 75 6d 62 65 | 72 20 72 65 70 72 65 73 |ll numbe|r repres|
|00002140| 65 6e 74 61 74 69 6f 6e | 20 66 75 6e 63 74 69 6f |entation| functio|
|00002150| 6e 73 20 64 65 66 69 6e | 65 64 20 69 6e 20 74 68 |ns defin|ed in th|
|00002160| 65 0a 6c 6f 63 61 6c 69 | 7a 61 74 69 6f 6e 20 73 |e.locali|zation s|
|00002170| 65 74 20 74 6f 20 72 65 | 74 75 72 6e 20 6e 75 6d |et to re|turn num|
|00002180| 62 65 72 73 20 69 6e 20 | 74 68 65 20 66 6f 72 6d |bers in |the form|
|00002190| 61 74 20 75 73 65 64 20 | 69 6e 20 47 65 72 6d 61 |at used |in Germa|
|000021a0| 6e 79 2e 20 20 49 66 0a | 74 68 65 20 63 61 6c 6c |ny. If.|the call|
|000021b0| 20 77 61 73 20 73 75 63 | 63 65 73 73 66 75 6c 2c | was suc|cessful,|
|000021c0| 20 73 65 74 6c 6f 63 61 | 6c 65 20 77 69 6c 6c 20 | setloca|le will |
|000021d0| 72 65 74 75 72 6e 20 74 | 68 65 20 6e 61 6d 65 20 |return t|he name |
|000021e0| 6f 66 20 79 6f 75 72 0a | 6c 6f 63 61 6c 65 2e 20 |of your.|locale. |
|000021f0| 20 41 20 4e 55 4c 4c 20 | 72 65 74 75 72 6e 20 76 | A NULL |return v|
|00002200| 61 6c 75 65 20 69 6e 64 | 69 63 61 74 65 73 20 66 |alue ind|icates f|
|00002210| 61 69 6c 75 72 65 2e 20 | 20 4e 6f 74 65 20 74 68 |ailure. | Note th|
|00002220| 61 74 20 74 68 65 0a 65 | 6e 76 69 72 6f 6e 6d 65 |at the.e|nvironme|
|00002230| 6e 74 73 20 61 72 65 20 | 70 72 65 64 65 74 65 72 |nts are |predeter|
|00002240| 6d 69 6e 65 64 20 6f 75 | 74 73 69 64 65 20 79 6f |mined ou|tside yo|
|00002250| 75 72 20 43 20 70 72 6f | 67 72 61 6d 20 62 79 20 |ur C pro|gram by |
|00002260| 74 68 65 20 73 79 73 74 | 65 6d 0a 79 6f 75 20 72 |the syst|em.you r|
|00002270| 75 6e 20 6f 6e 2e 20 28 | 53 6f 20 74 68 65 20 65 |un on. (|So the e|
|00002280| 78 61 6d 70 6c 65 20 67 | 69 76 65 6e 20 68 65 72 |xample g|iven her|
|00002290| 65 20 69 73 20 6c 69 6b | 65 6c 79 20 74 6f 20 66 |e is lik|ely to f|
|000022a0| 61 69 6c 20 6f 6e 20 61 | 6c 6c 20 62 75 74 20 61 |ail on a|ll but a|
|000022b0| 0a 66 65 77 20 73 79 73 | 74 65 6d 73 2e 29 20 43 |.few sys|tems.) C|
|000022c0| 68 65 63 6b 20 74 68 65 | 20 73 65 74 6c 6f 63 61 |heck the| setloca|
|000022d0| 6c 65 20 6d 61 6e 75 61 | 6c 20 70 61 67 65 20 6f |le manua|l page o|
|000022e0| 72 20 79 6f 75 72 20 73 | 79 73 74 65 6d 0a 64 6f |r your s|ystem.do|
|000022f0| 63 75 6d 65 6e 74 61 74 | 69 6f 6e 20 74 6f 20 66 |cumentat|ion to f|
|00002300| 69 6e 64 20 6f 75 74 20 | 61 62 6f 75 74 20 74 68 |ind out |about th|
|00002310| 65 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 73 20 61 |e enviro|nments a|
|00002320| 76 61 69 6c 61 62 6c 65 | 2e 0a 0a 54 68 65 72 65 |vailable|...There|
|00002330| 20 61 72 65 20 73 65 76 | 65 72 61 6c 20 4c 4f 43 | are sev|eral LOC|
|00002340| 41 4c 45 20 74 79 70 65 | 73 20 61 76 61 69 6c 61 |ALE type|s availa|
|00002350| 62 6c 65 20 66 6f 72 20 | 64 69 66 66 65 72 65 6e |ble for |differen|
|00002360| 74 20 6c 6f 63 61 6c 69 | 7a 61 74 69 6f 6e 0a 61 |t locali|zation.a|
|00002370| 73 70 65 63 74 73 20 28 | 63 75 72 72 65 6e 63 79 |spects (|currency|
|00002380| 20 73 69 67 6e 2c 20 6e | 75 6d 62 65 72 20 72 65 | sign, n|umber re|
|00002390| 70 72 65 73 65 6e 74 61 | 74 69 6f 6e 2c 20 63 68 |presenta|tion, ch|
|000023a0| 61 72 61 63 74 65 72 73 | 20 73 65 74 73 29 2e 20 |aracters| sets). |
|000023b0| 54 68 65 0a 76 61 6c 75 | 65 20 74 68 65 79 20 63 |The.valu|e they c|
|000023c0| 61 6e 20 74 61 6b 65 20 | 69 73 20 68 69 67 68 6c |an take |is highl|
|000023d0| 79 20 73 79 73 74 65 6d | 20 64 65 70 65 6e 64 65 |y system| depende|
|000023e0| 6e 74 2e 20 41 6c 73 6f | 2c 20 69 74 20 73 68 6f |nt. Also|, it sho|
|000023f0| 75 6c 64 20 62 65 20 75 | 70 0a 74 6f 20 74 68 65 |uld be u|p.to the|
|00002400| 20 75 73 65 72 20 74 6f | 20 64 65 66 69 6e 65 20 | user to| define |
|00002410| 74 68 65 20 6c 6f 63 61 | 6c 65 20 65 6e 76 69 72 |the loca|le envir|
|00002420| 6f 6e 6d 65 6e 74 20 68 | 65 20 6e 65 65 64 73 2e |onment h|e needs.|
|00002430| 20 0a 20 0a 41 20 43 20 | 70 72 6f 67 72 61 6d 20 | . .A C |program |
|00002440| 69 6e 68 65 72 69 74 73 | 20 69 74 73 20 6c 6f 63 |inherits| its loc|
|00002450| 61 6c 65 20 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 20 |ale envi|ronment |
|00002460| 76 61 72 69 61 62 6c 65 | 73 20 77 68 65 6e 20 69 |variable|s when i|
|00002470| 74 20 73 74 61 72 74 73 | 20 75 70 2e 0a 54 68 69 |t starts| up..Thi|
|00002480| 73 20 68 61 70 70 65 6e | 73 20 61 75 74 6f 6d 61 |s happen|s automa|
|00002490| 74 69 63 61 6c 6c 79 2e | 20 20 48 6f 77 65 76 65 |tically.| Howeve|
|000024a0| 72 2c 20 74 68 65 73 65 | 20 76 61 72 69 61 62 6c |r, these| variabl|
|000024b0| 65 73 20 64 6f 20 6e 6f | 74 0a 61 75 74 6f 6d 61 |es do no|t.automa|
|000024c0| 74 69 63 61 6c 6c 79 20 | 63 6f 6e 74 72 6f 6c 20 |tically |control |
|000024d0| 74 68 65 20 6c 6f 63 61 | 6c 65 20 75 73 65 64 20 |the loca|le used |
|000024e0| 62 79 20 74 68 65 20 6c | 69 62 72 61 72 79 20 66 |by the l|ibrary f|
|000024f0| 75 6e 63 74 69 6f 6e 73 | 2c 20 62 65 63 61 75 73 |unctions|, becaus|
|00002500| 65 0a 49 53 4f 2f 41 4e | 53 49 20 43 20 73 61 79 |e.ISO/AN|SI C say|
|00002510| 73 20 74 68 61 74 20 61 | 6c 6c 20 70 72 6f 67 72 |s that a|ll progr|
|00002520| 61 6d 73 20 73 74 61 72 | 74 20 62 79 20 64 65 66 |ams star|t by def|
|00002530| 61 75 6c 74 20 69 6e 20 | 74 68 65 20 73 74 61 6e |ault in |the stan|
|00002540| 64 61 72 64 20 43 0a 6c | 6f 63 61 6c 65 2e 20 20 |dard C.l|ocale. |
|00002550| 54 6f 20 75 73 65 20 74 | 68 65 20 6c 6f 63 61 6c |To use t|he local|
|00002560| 65 73 20 73 70 65 63 69 | 66 69 65 64 20 62 79 20 |es speci|fied by |
|00002570| 74 68 65 20 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 2c |the envi|ronment,|
|00002580| 20 54 68 65 20 50 4f 53 | 49 58 0a 73 74 61 6e 64 | The POS|IX.stand|
|00002590| 61 72 64 20 64 65 66 69 | 6e 65 73 20 74 68 65 20 |ard defi|nes the |
|000025a0| 66 6f 6c 6c 6f 77 69 6e | 67 20 63 61 6c 6c 3a 0a |followin|g call:.|
|000025b0| 2d 2d 2d 2d 2d 0a 73 65 | 74 6c 6f 63 61 6c 65 20 |-----.se|tlocale |
|000025c0| 28 4c 43 5f 41 4c 4c 2c | 20 22 22 29 3b 0a 2d 2d |(LC_ALL,| "");.--|
|000025d0| 2d 2d 2d 0a 0a 4f 66 20 | 63 6f 75 72 73 65 2c 20 |---..Of |course, |
|000025e0| 79 6f 75 20 63 61 6e 20 | 6f 6e 6c 79 20 73 65 74 |you can |only set|
|000025f0| 20 70 61 72 74 20 6f 66 | 20 79 6f 75 72 20 65 6e | part of| your en|
|00002600| 76 69 72 6f 6e 6d 65 6e | 74 2c 20 62 79 20 63 61 |vironmen|t, by ca|
|00002610| 6c 6c 69 6e 67 2c 20 73 | 61 79 3a 0a 2d 2d 2d 2d |lling, s|ay:.----|
|00002620| 0a 73 65 74 6c 6f 63 61 | 6c 65 20 28 4c 43 5f 43 |.setloca|le (LC_C|
|00002630| 54 59 50 45 2c 20 22 22 | 29 3b 0a 2d 2d 2d 2d 0a |TYPE, ""|);.----.|
|00002640| 54 68 69 73 20 6f 6e 6c | 79 20 64 65 66 69 6e 65 |This onl|y define|
|00002650| 73 20 74 68 65 20 63 68 | 61 72 61 63 74 65 72 20 |s the ch|aracter |
|00002660| 63 6c 61 73 73 69 66 69 | 63 61 74 69 6f 6e 20 6d |classifi|cation m|
|00002670| 61 63 72 6f 73 20 28 64 | 65 66 69 6e 65 64 20 69 |acros (d|efined i|
|00002680| 6e 0a 63 74 79 70 65 2e | 68 29 2e 0a 0a 54 68 69 |n.ctype.|h)...Thi|
|00002690| 73 20 69 73 20 61 20 6c | 69 73 74 20 6f 66 20 6c |s is a l|ist of l|
|000026a0| 6f 63 61 6c 20 63 61 74 | 65 67 6f 72 69 65 73 3a |ocal cat|egories:|
|000026b0| 0a 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|000026c0| 20 20 20 20 20 45 66 66 | 65 63 74 20 6f 66 20 53 | Eff|ect of S|
|000026d0| 70 65 63 69 66 79 69 6e | 67 20 20 20 45 6e 76 69 |pecifyin|g Envi|
|000026e0| 72 6f 6e 6d 65 6e 74 20 | 56 61 72 69 61 62 6c 65 |ronment |Variable|
|000026f0| 0a 20 20 20 20 20 63 61 | 74 65 67 6f 72 79 20 20 |. ca|tegory |
|00002700| 20 20 20 20 74 68 65 20 | 56 61 6c 75 65 20 20 20 | the |Value |
|00002710| 20 20 20 20 20 20 20 20 | 20 20 20 41 66 66 65 63 | | Affec|
|00002720| 74 65 64 0a 20 20 20 20 | 20 5f 5f 5f 5f 5f 5f 5f |ted. | _______|
|00002730| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00002740| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00002750| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00002760| 5f 5f 5f 0a 0a 20 20 20 | 20 20 4c 43 5f 41 4c 4c |___.. | LC_ALL|
|00002770| 20 20 20 20 20 20 20 20 | 53 65 74 73 20 6f 72 20 | |Sets or |
|00002780| 71 75 65 72 69 65 73 20 | 20 20 20 20 20 20 20 4c |queries | L|
|00002790| 41 4e 47 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |ANG. | |
|000027a0| 20 20 20 20 20 20 20 65 | 6e 74 69 72 65 20 65 6e | e|ntire en|
|000027b0| 76 69 72 6f 6e 6d 65 6e | 74 0a 20 20 20 20 20 4c |vironmen|t. L|
|000027c0| 43 5f 43 4f 4c 4c 41 54 | 45 20 20 20 20 43 68 61 |C_COLLAT|E Cha|
|000027d0| 6e 67 65 73 20 6f 72 20 | 71 75 65 72 69 65 73 20 |nges or |queries |
|000027e0| 20 20 20 20 4c 43 5f 43 | 4f 4c 4c 41 54 45 0a 20 | LC_C|OLLATE. |
|000027f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002800| 20 20 63 6f 6c 6c 61 74 | 69 6f 6e 20 73 65 71 75 | collat|ion sequ|
|00002810| 65 6e 63 65 73 0a 20 20 | 20 20 20 4c 43 5f 43 54 |ences. | LC_CT|
|00002820| 59 50 45 20 20 20 20 20 | 20 43 68 61 6e 67 65 73 |YPE | Changes|
|00002830| 20 6f 72 20 71 75 65 72 | 69 65 73 20 20 20 20 20 | or quer|ies |
|00002840| 4c 43 5f 43 54 59 50 45 | 0a 20 20 20 20 20 20 20 |LC_CTYPE|. |
|00002850| 20 20 20 20 20 20 20 20 | 20 20 20 20 63 68 61 72 | | char|
|00002860| 61 63 74 65 72 20 63 6c | 61 73 73 69 66 69 2d 0a |acter cl|assifi-.|
|00002870| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002880| 20 20 20 63 61 74 69 6f | 6e 0a 20 20 20 20 20 4c | catio|n. L|
|00002890| 43 5f 4e 55 4d 45 52 49 | 43 20 20 20 20 43 68 61 |C_NUMERI|C Cha|
|000028a0| 6e 67 65 73 20 6f 72 20 | 71 75 65 72 69 65 73 20 |nges or |queries |
|000028b0| 20 20 20 20 4c 43 5f 4e | 55 4d 45 52 49 43 0a 20 | LC_N|UMERIC. |
|000028c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000028d0| 20 20 6e 75 6d 62 65 72 | 20 66 6f 72 6d 61 74 20 | number| format |
|000028e0| 69 6e 66 6f 72 2d 0a 20 | 20 20 20 20 20 20 20 20 |infor-. | |
|000028f0| 20 20 20 20 20 20 20 20 | 20 20 6d 61 74 69 6f 6e | | mation|
|00002900| 0a 20 20 20 20 20 4c 43 | 5f 54 49 4d 45 20 20 20 |. LC|_TIME |
|00002910| 20 20 20 20 43 68 61 6e | 67 65 73 20 6f 72 20 71 | Chan|ges or q|
|00002920| 75 65 72 69 65 73 20 20 | 20 20 20 4c 43 5f 54 49 |ueries | LC_TI|
|00002930| 4d 45 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ME. | |
|00002940| 20 20 20 20 20 20 74 69 | 6d 65 20 63 6f 6e 76 65 | ti|me conve|
|00002950| 72 73 69 6f 6e 0a 20 20 | 20 20 20 20 20 20 20 20 |rsion. | |
|00002960| 20 20 20 20 20 20 20 20 | 20 70 61 72 61 6d 65 74 | | paramet|
|00002970| 65 72 73 0a 20 20 20 20 | 20 4c 43 5f 4d 4f 4e 45 |ers. | LC_MONE|
|00002980| 54 41 52 59 20 20 20 43 | 68 61 6e 67 65 73 20 6f |TARY C|hanges o|
|00002990| 72 20 71 75 65 72 69 65 | 73 20 20 20 20 20 4c 43 |r querie|s LC|
|000029a0| 5f 4d 4f 4e 45 54 41 52 | 59 0a 20 20 20 20 20 20 |_MONETAR|Y. |
|000029b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 6d 6f 6e | | mon|
|000029c0| 65 74 61 72 79 20 69 6e | 66 6f 72 6d 61 74 69 6f |etary in|formatio|
|000029d0| 6e 0a 0a 0a 0a 0a 34 2e | 20 55 73 69 6e 67 20 74 |n.....4.| Using t|
|000029e0| 68 65 20 6c 6f 63 61 6c | 65 20 69 6e 66 6f 72 6d |he local|e inform|
|000029f0| 61 74 69 6f 6e 20 66 6f | 72 20 63 68 61 72 61 63 |ation fo|r charac|
|00002a00| 74 65 72 20 63 6c 61 73 | 73 69 66 69 63 61 74 69 |ter clas|sificati|
|00002a10| 6f 6e 0a 49 66 20 79 6f | 75 20 77 72 69 74 65 20 |on.If yo|u write |
|00002a20| 61 20 70 72 6f 67 72 61 | 6d 20 77 68 69 63 68 20 |a progra|m which |
|00002a30| 73 75 70 70 6f 72 74 73 | 20 69 6e 74 65 72 6e 61 |supports| interna|
|00002a40| 74 69 6f 6e 61 6c 20 75 | 73 65 2c 20 79 6f 75 20 |tional u|se, you |
|00002a50| 73 68 6f 75 6c 64 0a 75 | 73 65 20 74 68 65 20 61 |should.u|se the a|
|00002a60| 76 61 69 6c 61 62 6c 65 | 20 73 74 61 6e 64 61 72 |vailable| standar|
|00002a70| 64 69 7a 65 64 20 66 75 | 6e 63 74 69 6f 6e 73 2c |dized fu|nctions,|
|00002a80| 20 61 73 20 6f 6e 6c 79 | 20 74 68 65 73 65 20 77 | as only| these w|
|00002a90| 69 6c 6c 20 62 65 0a 69 | 6e 66 6c 75 65 6e 63 65 |ill be.i|nfluence|
|00002aa0| 64 20 62 79 20 74 68 65 | 20 73 65 74 6c 6f 63 61 |d by the| setloca|
|00002ab0| 6c 65 20 63 61 6c 6c 2e | 20 54 68 75 73 2c 20 69 |le call.| Thus, i|
|00002ac0| 66 20 79 6f 75 20 77 61 | 6e 74 20 74 6f 20 63 6f |f you wa|nt to co|
|00002ad0| 6e 76 65 72 74 20 61 0a | 63 61 70 69 74 61 6c 20 |nvert a.|capital |
|00002ae0| 6c 65 74 74 65 72 20 69 | 6e 20 63 20 74 6f 20 61 |letter i|n c to a|
|00002af0| 20 6c 6f 77 65 72 20 63 | 61 73 65 20 6c 65 74 74 | lower c|ase lett|
|00002b00| 65 72 20 69 6e 20 6c 2c | 20 5f 64 6f 6e 27 74 5f |er in l,| _don't_|
|00002b10| 20 77 72 69 74 65 3a 0a | 0a 6c 20 3d 20 63 20 2d | write:.|.l = c -|
|00002b20| 20 27 41 27 20 2b 20 27 | 61 27 3b 0a 0a 57 68 69 | 'A' + '|a';..Whi|
|00002b30| 6c 65 20 74 68 69 73 20 | 77 69 6c 6c 20 77 6f 72 |le this |will wor|
|00002b40| 6b 20 66 6f 72 20 63 68 | 61 72 61 63 74 65 72 73 |k for ch|aracters|
|00002b50| 20 69 6e 20 74 68 65 20 | 55 53 2d 41 53 43 49 49 | in the |US-ASCII|
|00002b60| 20 63 68 61 72 61 63 74 | 65 72 20 73 65 74 2c 20 | charact|er set, |
|00002b70| 69 74 0a 77 69 6c 6c 20 | 6e 6f 74 20 77 6f 72 6b |it.will |not work|
|00002b80| 20 77 69 74 68 20 6d 61 | 6e 79 20 6f 74 68 65 72 | with ma|ny other|
|00002b90| 20 63 68 61 72 61 63 74 | 65 72 20 73 65 74 73 2e | charact|er sets.|
|00002ba0| 20 54 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 2c 0a | The fol|lowing,.|
|00002bb0| 73 74 61 6e 64 61 72 64 | 2d 63 6f 6e 66 6f 72 6d |standard|-conform|
|00002bc0| 61 6e 74 20 63 6f 64 65 | 20 77 69 6c 6c 3a 0a 0a |ant code| will:..|
|00002bd0| 23 69 6e 63 6c 75 64 65 | 20 3c 63 74 79 70 65 2e |#include| <ctype.|
|00002be0| 68 3e 0a 0a 2e 2e 2e 2e | 0a 0a 6c 20 3d 20 74 6f |h>......|..l = to|
|00002bf0| 6c 6f 77 65 72 28 63 29 | 3b 0a 0a 41 6c 73 6f 20 |lower(c)|;..Also |
|00002c00| 6e 6f 74 65 20 74 68 61 | 74 20 74 68 65 20 73 65 |note tha|t the se|
|00002c10| 63 6f 6e 64 20 63 6f 64 | 65 20 6d 61 79 20 61 63 |cond cod|e may ac|
|00002c20| 74 75 61 6c 6c 79 20 62 | 65 20 66 61 73 74 65 72 |tually b|e faster|
|00002c30| 20 74 68 61 6e 20 65 76 | 65 6e 20 74 68 65 0a 66 | than ev|en the.f|
|00002c40| 75 6c 6c 20 22 43 22 20 | 6c 6f 63 61 6c 65 20 66 |ull "C" |locale f|
|00002c50| 75 6e 63 74 69 6f 6e 61 | 6c 69 74 79 20 28 66 6f |unctiona|lity (fo|
|00002c60| 72 20 6d 6f 73 74 20 69 | 6d 70 6c 65 6d 65 6e 74 |r most i|mplement|
|00002c70| 61 74 69 6f 6e 73 29 2c | 20 61 73 20 69 74 0a 72 |ations),| as it.r|
|00002c80| 65 70 6c 61 63 65 73 20 | 61 20 63 6f 6d 70 6c 65 |eplaces |a comple|
|00002c90| 78 20 65 78 70 72 65 73 | 73 69 6f 6e 20 28 20 28 |x expres|sion ( (|
|00002ca0| 63 3c 3d 27 5a 27 20 26 | 26 20 63 3e 3d 27 41 27 |c<='Z' &|& c>='A'|
|00002cb0| 29 3f 20 63 2d 27 41 27 | 2b 61 3a 63 3b 20 29 62 |)? c-'A'|+a:c; )b|
|00002cc0| 79 20 61 20 73 69 6d 70 | 6c 65 0a 74 61 62 6c 65 |y a simp|le.table|
|00002cd0| 20 6c 6f 6f 6b 75 70 21 | 0a 0a 4e 6f 74 65 20 74 | lookup!|..Note t|
|00002ce0| 68 61 74 20 74 68 69 73 | 20 49 53 4f 20 73 74 61 |hat this| ISO sta|
|00002cf0| 6e 64 61 72 64 20 69 73 | 20 69 6e 64 65 70 65 6e |ndard is| indepen|
|00002d00| 64 65 6e 74 20 6f 66 20 | 74 68 65 20 63 68 61 72 |dent of |the char|
|00002d10| 61 63 74 65 72 20 73 65 | 74 0a 65 6e 63 6f 64 69 |acter se|t.encodi|
|00002d20| 6e 67 20 75 73 65 64 21 | 0a 0a 0a 0a 35 2e 20 4c |ng used!|....5. L|
|00002d30| 61 6e 67 75 61 67 65 20 | 69 6e 64 65 70 65 6e 64 |anguage |independ|
|00002d40| 65 6e 74 20 6d 65 73 73 | 61 67 65 73 0a 54 68 65 |ent mess|ages.The|
|00002d50| 72 65 20 61 72 65 20 74 | 77 6f 20 63 6f 6d 70 65 |re are t|wo compe|
|00002d60| 74 69 6e 67 20 73 74 61 | 6e 64 61 72 64 73 20 66 |ting sta|ndards f|
|00002d70| 6f 72 20 6c 61 6e 67 75 | 61 67 65 20 69 6e 64 65 |or langu|age inde|
|00002d80| 70 65 6e 64 65 6e 74 20 | 6d 65 73 73 61 67 65 73 |pendent |messages|
|00002d90| 3a 0a 6f 6e 65 20 62 79 | 20 58 2f 4f 70 65 6e 2c |:.one by| X/Open,|
|00002da0| 20 61 6e 64 20 61 6e 6f | 74 68 65 72 20 6f 6e 65 | and ano|ther one|
|00002db0| 20 70 72 6f 70 61 67 61 | 74 65 64 20 62 79 20 53 | propaga|ted by S|
|00002dc0| 75 6e 2e 20 20 54 68 65 | 20 58 2f 4f 70 65 6e 20 |un. The| X/Open |
|00002dd0| 73 74 61 6e 64 61 72 64 | 0a 73 65 65 6d 73 20 74 |standard|.seems t|
|00002de0| 6f 20 68 61 76 65 20 66 | 6f 75 6e 64 20 61 20 6c |o have f|ound a l|
|00002df0| 61 72 67 65 72 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |arger fo|llowing |
|00002e00| 61 73 20 69 74 20 68 61 | 73 20 62 65 65 6e 20 61 |as it ha|s been a|
|00002e10| 72 6f 75 6e 64 20 66 6f | 72 20 61 0a 6c 6f 6e 67 |round fo|r a.long|
|00002e20| 65 72 20 74 69 6d 65 2e | 20 20 41 73 20 6f 66 20 |er time.| As of |
|00002e30| 53 6f 6c 61 72 69 73 20 | 32 2e 78 2c 20 53 75 6e |Solaris |2.x, Sun|
|00002e40| 20 73 75 70 70 6f 72 74 | 73 20 62 6f 74 68 20 74 | support|s both t|
|00002e50| 68 65 20 58 2f 4f 70 65 | 6e 20 61 6e 64 20 53 75 |he X/Ope|n and Su|
|00002e60| 6e 0a 6d 65 73 73 61 67 | 65 20 73 74 61 6e 64 61 |n.messag|e standa|
|00002e70| 72 64 73 2e 20 20 28 74 | 68 65 79 20 75 73 65 64 |rds. (t|hey used|
|00002e80| 20 74 6f 20 73 75 70 70 | 6f 72 74 20 6f 6e 6c 79 | to supp|ort only|
|00002e90| 20 74 68 65 69 72 20 6f | 77 6e 20 22 73 74 61 6e | their o|wn "stan|
|00002ea0| 64 61 72 64 22 2e 29 0a | 0a 35 2e 31 20 58 2f 4f |dard".).|.5.1 X/O|
|00002eb0| 70 65 6e 20 6c 61 6e 67 | 75 61 67 65 20 69 6e 64 |pen lang|uage ind|
|00002ec0| 65 70 65 6e 64 65 6e 74 | 20 6d 65 73 73 61 67 65 |ependent| message|
|00002ed0| 73 0a 58 2f 4f 70 65 6e | 20 64 65 66 69 6e 65 73 |s.X/Open| defines|
|00002ee0| 20 61 20 6d 65 74 68 6f | 64 20 66 6f 72 20 70 72 | a metho|d for pr|
|00002ef0| 6f 76 69 64 69 6e 67 20 | 6c 61 6e 67 75 61 67 65 |oviding |language|
|00002f00| 2d 69 6e 64 65 70 65 6e | 64 65 6e 74 20 6d 65 73 |-indepen|dent mes|
|00002f10| 73 61 67 65 73 2e 0a 45 | 72 72 6f 72 20 6d 65 73 |sages..E|rror mes|
|00002f20| 73 61 67 65 73 20 61 72 | 65 20 6b 65 70 74 20 69 |sages ar|e kept i|
|00002f30| 6e 20 61 20 63 61 74 61 | 6c 6f 67 20 77 68 69 63 |n a cata|log whic|
|00002f40| 68 20 69 73 20 6f 70 65 | 6e 65 64 20 75 70 6f 6e |h is ope|ned upon|
|00002f50| 20 70 72 6f 67 72 61 6d | 0a 73 74 61 72 74 20 77 | program|.start w|
|00002f60| 69 74 68 20 61 20 6c 6f | 63 61 6c 65 20 73 70 65 |ith a lo|cale spe|
|00002f70| 63 69 66 69 63 61 74 69 | 6f 6e 2e 20 20 54 68 65 |cificati|on. The|
|00002f80| 6e 20 74 68 65 20 6d 65 | 73 73 61 67 65 20 6e 75 |n the me|ssage nu|
|00002f90| 6d 62 65 72 20 61 6e 64 | 20 61 20 73 65 74 0a 73 |mber and| a set.s|
|00002fa0| 70 65 63 69 66 69 63 61 | 74 69 6f 6e 20 61 72 65 |pecifica|tion are|
|00002fb0| 20 75 73 65 64 20 74 6f | 20 69 6e 64 65 78 20 74 | used to| index t|
|00002fc0| 68 65 20 6d 65 73 73 61 | 67 65 20 63 61 74 61 6c |he messa|ge catal|
|00002fd0| 6f 67 2e 20 20 41 20 64 | 65 66 61 75 6c 74 20 66 |og. A d|efault f|
|00002fe0| 6f 75 72 74 68 0a 61 72 | 67 75 6d 65 6e 74 20 69 |ourth.ar|gument i|
|00002ff0| 73 20 73 70 65 63 69 66 | 69 65 64 20 77 68 69 63 |s specif|ied whic|
|00003000| 68 20 77 69 6c 6c 20 62 | 65 20 70 72 69 6e 74 65 |h will b|e printe|
|00003010| 64 20 69 66 20 61 20 70 | 61 72 74 69 63 75 6c 61 |d if a p|articula|
|00003020| 72 20 6d 65 73 73 61 67 | 65 0a 63 61 6e 6e 6f 74 |r messag|e.cannot|
|00003030| 20 62 65 20 66 6f 75 6e | 64 20 69 6e 20 74 68 65 | be foun|d in the|
|00003040| 20 63 61 74 61 6c 6f 67 | 2e 20 0a 0a 48 65 72 65 | catalog|. ..Here|
|00003050| 20 69 73 20 74 68 65 20 | 77 6f 72 6c 64 2d 66 61 | is the |world-fa|
|00003060| 6d 6f 75 73 20 43 20 70 | 72 6f 67 72 61 6d 20 75 |mous C p|rogram u|
|00003070| 73 69 6e 67 20 74 68 65 | 20 6c 61 6e 67 75 61 67 |sing the| languag|
|00003080| 65 2d 69 6e 64 65 70 65 | 6e 64 65 6e 74 0a 58 2f |e-indepe|ndent.X/|
|00003090| 4f 70 65 6e 20 6d 65 73 | 73 61 67 65 20 73 74 61 |Open mes|sage sta|
|000030a0| 6e 64 61 72 64 3a 0a 2d | 2d 2d 2d 2d 2d 2d 2d 2d |ndard:.-|--------|
|000030b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000030c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000030d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000030e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000030f0| 2d 0a 23 69 6e 63 6c 75 | 64 65 20 3c 73 74 64 69 |-.#inclu|de <stdi|
|00003100| 6f 2e 68 3e 0a 23 69 6e | 63 6c 75 64 65 20 3c 6e |o.h>.#in|clude <n|
|00003110| 6c 5f 74 79 70 65 73 2e | 68 3e 0a 20 0a 23 64 65 |l_types.|h>. .#de|
|00003120| 66 69 6e 65 20 53 45 54 | 20 31 0a 23 64 65 66 69 |fine SET| 1.#defi|
|00003130| 6e 65 20 4d 53 47 5f 48 | 45 4c 4c 4f 20 31 0a 20 |ne MSG_H|ELLO 1. |
|00003140| 0a 6e 6c 5f 63 61 74 64 | 20 63 61 74 66 64 3b 0a |.nl_catd| catfd;.|
|00003150| 20 0a 69 6e 74 20 6d 61 | 69 6e 20 28 69 6e 74 20 | .int ma|in (int |
|00003160| 61 72 67 63 2c 20 63 68 | 61 72 20 2a 2a 61 72 67 |argc, ch|ar **arg|
|00003170| 76 29 20 7b 0a 20 20 20 | 20 20 20 20 20 2f 2a 20 |v) {. | /* |
|00003180| 4f 70 65 6e 20 74 68 65 | 20 6d 65 73 73 61 67 65 |Open the| message|
|00003190| 20 63 61 74 61 6c 6f 67 | 2e 20 57 65 20 75 73 65 | catalog|. We use|
|000031a0| 20 74 68 65 20 62 61 73 | 65 6e 61 6d 65 20 6f 66 | the bas|ename of|
|000031b0| 20 74 68 65 20 70 72 6f | 67 72 61 6d 0a 20 20 20 | the pro|gram. |
|000031c0| 20 20 20 20 20 20 2a 20 | 61 73 20 74 68 65 20 63 | * |as the c|
|000031d0| 61 74 61 6c 6f 67 20 6e | 61 6d 65 2e 20 4f 66 20 |atalog n|ame. Of |
|000031e0| 63 6f 75 72 73 65 2c 20 | 73 65 76 65 72 61 6c 20 |course, |several |
|000031f0| 70 72 6f 67 72 61 6d 73 | 20 63 61 6e 20 61 6c 73 |programs| can als|
|00003200| 6f 0a 20 20 20 20 20 20 | 20 20 20 2a 20 73 68 61 |o. | * sha|
|00003210| 72 65 20 61 20 20 63 6f | 6d 6d 6f 6e 20 63 61 74 |re a co|mmon cat|
|00003220| 61 6c 6f 67 2e 0a 20 20 | 20 20 20 20 20 20 20 2a |alog.. | *|
|00003230| 2f 0a 20 20 20 20 20 20 | 20 20 63 61 74 66 64 20 |/. | catfd |
|00003240| 3d 20 63 61 74 6f 70 65 | 6e 20 28 62 61 73 65 6e |= catope|n (basen|
|00003250| 61 6d 65 20 28 61 72 67 | 76 20 5b 30 5d 29 2c 20 |ame (arg|v [0]), |
|00003260| 4e 4c 5f 43 41 54 5f 4c | 4f 43 41 4c 45 29 3b 0a |NL_CAT_L|OCALE);.|
|00003270| 20 20 20 20 20 20 20 20 | 2f 2a 20 63 61 74 67 65 | |/* catge|
|00003280| 74 73 20 72 65 74 75 72 | 6e 73 20 6d 65 73 73 61 |ts retur|ns messa|
|00003290| 67 65 20 4d 53 47 5f 48 | 45 4c 4c 4f 20 66 72 6f |ge MSG_H|ELLO fro|
|000032a0| 6d 20 73 65 74 20 53 45 | 54 20 66 72 6f 6d 20 74 |m set SE|T from t|
|000032b0| 68 65 20 0a 20 20 20 20 | 20 20 20 20 20 2a 20 6d |he . | * m|
|000032c0| 65 73 73 61 67 65 20 63 | 61 74 61 6c 6f 67 20 63 |essage c|atalog c|
|000032d0| 61 74 66 64 2e 20 49 66 | 20 63 61 74 66 64 20 64 |atfd. If| catfd d|
|000032e0| 6f 65 73 20 6e 6f 74 20 | 72 65 66 65 72 20 74 6f |oes not |refer to|
|000032f0| 20 61 20 6d 65 73 73 61 | 67 65 0a 20 20 20 20 20 | a messa|ge. |
|00003300| 20 20 20 20 2a 20 63 61 | 74 61 6c 6f 67 2c 20 6f | * ca|talog, o|
|00003310| 72 20 74 68 65 20 72 65 | 71 75 65 73 74 65 64 20 |r the re|quested |
|00003320| 6d 65 73 73 61 67 65 20 | 63 61 6e 6e 6f 74 20 62 |message |cannot b|
|00003330| 65 20 66 6f 75 6e 64 2c | 20 74 68 65 0a 20 20 20 |e found,| the. |
|00003340| 20 20 20 20 20 20 2a 20 | 63 61 74 61 6c 6f 67 2c | * |catalog,|
|00003350| 20 6f 72 20 74 68 65 20 | 72 65 71 75 65 73 74 65 | or the |requeste|
|00003360| 64 20 6d 65 73 73 61 67 | 65 20 63 61 6e 6e 6f 74 |d messag|e cannot|
|00003370| 20 62 65 20 66 6f 75 6e | 64 2c 20 74 68 65 0a 20 | be foun|d, the. |
|00003380| 20 20 20 20 20 20 20 20 | 2a 20 66 6f 75 72 74 68 | |* fourth|
|00003390| 20 61 72 67 75 6d 65 6e | 74 20 69 73 20 72 65 74 | argumen|t is ret|
|000033a0| 75 72 6e 65 64 2e 0a 20 | 20 20 20 20 20 20 20 20 |urned.. | |
|000033b0| 2a 2f 0a 20 20 20 20 20 | 20 20 20 70 72 69 6e 74 |*/. | print|
|000033c0| 66 20 28 63 61 74 67 65 | 74 73 20 28 63 61 74 66 |f (catge|ts (catf|
|000033d0| 64 2c 20 53 45 54 2c 20 | 4d 53 47 5f 48 45 4c 4c |d, SET, |MSG_HELL|
|000033e0| 4f 2c 20 22 68 65 6c 6c | 6f 2c 20 77 6f 72 6c 64 |O, "hell|o, world|
|000033f0| 5c 6e 22 29 29 3b 0a 20 | 20 20 20 20 20 20 20 63 |\n"));. | c|
|00003400| 61 74 63 6c 6f 73 65 20 | 28 63 61 74 66 64 29 3b |atclose |(catfd);|
|00003410| 0a 20 20 20 20 20 20 20 | 20 72 65 74 75 72 6e 20 |. | return |
|00003420| 30 3b 0a 7d 0a 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |0;.}.---|--------|
|00003430| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003440| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003450| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003460| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0a 0a |--------|------..|
|00003470| 46 6f 72 20 63 61 74 6f | 70 65 6e 2c 20 73 70 65 |For cato|pen, spe|
|00003480| 63 69 66 79 20 74 68 65 | 20 63 6f 6e 73 74 61 6e |cify the| constan|
|00003490| 74 20 4e 4c 5f 43 41 54 | 5f 4c 4f 43 41 4c 45 20 |t NL_CAT|_LOCALE |
|000034a0| 74 6f 20 6f 70 65 6e 20 | 74 68 65 20 6d 65 73 73 |to open |the mess|
|000034b0| 61 67 65 0a 63 61 74 61 | 6c 6f 67 20 66 6f 72 20 |age.cata|log for |
|000034c0| 74 68 65 20 6c 6f 63 61 | 6c 65 20 73 65 74 20 66 |the loca|le set f|
|000034d0| 6f 72 20 74 68 65 20 4c | 43 5f 4d 45 53 53 41 47 |or the L|C_MESSAG|
|000034e0| 45 53 20 76 61 72 69 61 | 62 6c 65 3b 20 75 73 69 |ES varia|ble; usi|
|000034f0| 6e 67 0a 4e 4c 5f 43 41 | 54 5f 4c 4f 43 41 4c 45 |ng.NL_CA|T_LOCALE|
|00003500| 20 63 6f 6e 66 6f 72 6d | 73 20 74 6f 20 74 68 65 | conform|s to the|
|00003510| 20 58 50 47 34 20 73 74 | 61 6e 64 61 72 64 2e 20 | XPG4 st|andard. |
|00003520| 20 59 6f 75 20 63 61 6e | 20 73 70 65 63 69 66 79 | You can| specify|
|00003530| 20 30 20 28 7a 65 72 6f | 29 0a 66 6f 72 20 63 6f | 0 (zero|).for co|
|00003540| 6d 70 61 74 69 62 69 6c | 69 74 79 20 77 69 74 68 |mpatibil|ity with|
|00003550| 20 58 50 47 33 3b 20 77 | 68 65 6e 20 6f 66 6c 61 | XPG3; w|hen ofla|
|00003560| 67 20 69 73 20 73 65 74 | 20 74 6f 20 7a 65 72 6f |g is set| to zero|
|00003570| 2c 20 74 68 65 20 6c 6f | 63 61 6c 65 20 73 65 74 |, the lo|cale set|
|00003580| 0a 66 6f 72 20 74 68 65 | 20 4c 41 4e 47 20 76 61 |.for the| LANG va|
|00003590| 72 69 61 62 6c 65 20 64 | 65 74 65 72 6d 69 6e 65 |riable d|etermine|
|000035a0| 73 20 74 68 65 20 6d 65 | 73 73 61 67 65 20 63 61 |s the me|ssage ca|
|000035b0| 74 61 6c 6f 67 20 6c 6f | 63 61 6c 65 2e 0a 0a 53 |talog lo|cale...S|
|000035c0| 65 76 65 72 61 6c 20 75 | 74 69 6c 69 74 69 65 73 |everal u|tilities|
|000035d0| 20 65 78 69 73 74 20 66 | 6f 72 20 67 65 6e 65 72 | exist f|or gener|
|000035e0| 61 74 69 6e 67 20 6d 65 | 73 73 61 67 65 20 63 61 |ating me|ssage ca|
|000035f0| 74 61 6c 6f 67 73 20 61 | 6e 64 20 66 6f 72 0a 75 |talogs a|nd for.u|
|00003600| 70 67 72 61 64 69 6e 67 | 20 70 72 6f 67 72 61 6d |pgrading| program|
|00003610| 73 20 77 68 69 63 68 20 | 63 6f 6e 74 61 69 6e 20 |s which |contain |
|00003620| 68 61 72 64 2d 77 69 72 | 65 64 20 73 74 72 69 6e |hard-wir|ed strin|
|00003630| 67 73 3a 0a 2a 20 67 65 | 6e 63 61 74 20 69 73 20 |gs:.* ge|ncat is |
|00003640| 75 73 65 64 20 74 6f 20 | 67 65 6e 65 72 61 74 65 |used to |generate|
|00003650| 20 6d 65 73 73 61 67 65 | 20 63 61 74 61 6c 6f 67 | message| catalog|
|00003660| 73 0a 5b 41 6c 6c 20 6f | 74 68 65 72 20 70 72 6f |s.[All o|ther pro|
|00003670| 67 72 61 6d 73 20 61 72 | 65 20 4f 53 2d 73 70 65 |grams ar|e OS-spe|
|00003680| 63 69 66 69 63 3a 5d 0a | 2a 20 55 6c 74 72 69 78 |cific:].|* Ultrix|
|00003690| 20 61 6e 64 20 4f 53 46 | 20 73 75 70 70 6f 72 74 | and OSF| support|
|000036a0| 20 74 68 65 20 65 78 74 | 72 61 63 74 20 70 72 6f | the ext|ract pro|
|000036b0| 67 72 61 6d 20 77 68 69 | 63 68 20 77 69 6c 6c 20 |gram whi|ch will |
|000036c0| 65 78 74 72 61 63 74 20 | 73 74 72 69 6e 67 0a 20 |extract |string. |
|000036d0| 20 63 6f 6e 73 74 61 6e | 74 73 20 66 72 6f 6d 20 | constan|ts from |
|000036e0| 74 68 65 20 43 20 73 6f | 75 72 63 65 20 63 6f 64 |the C so|urce cod|
|000036f0| 65 2c 20 61 6e 64 20 68 | 61 73 20 61 6e 20 6f 70 |e, and h|as an op|
|00003700| 74 69 6f 6e 20 74 6f 20 | 72 65 70 6c 61 63 65 20 |tion to |replace |
|00003710| 74 68 65 73 65 0a 20 20 | 73 74 72 69 6e 67 73 20 |these. |strings |
|00003720| 77 69 74 68 20 63 61 6c | 6c 73 20 74 6f 20 63 61 |with cal|ls to ca|
|00003730| 74 67 65 74 73 2e 0a 2a | 20 48 50 2f 55 58 20 68 |tgets..*| HP/UX h|
|00003740| 61 73 20 61 20 73 69 6d | 69 6c 61 72 20 75 74 69 |as a sim|ilar uti|
|00003750| 6c 69 74 79 20 63 61 6c | 6c 65 64 20 66 69 6e 64 |lity cal|led find|
|00003760| 6d 73 67 2e 0a 2a 20 55 | 6e 64 65 72 20 4f 53 46 |msg..* U|nder OSF|
|00003770| 2c 20 6d 65 73 73 61 67 | 65 20 63 61 74 61 6c 6f |, messag|e catalo|
|00003780| 67 73 20 6d 61 79 20 62 | 65 20 6c 69 73 74 65 64 |gs may b|e listed|
|00003790| 20 77 69 74 68 20 74 68 | 65 20 64 73 70 63 61 74 | with th|e dspcat|
|000037a0| 20 75 74 69 6c 69 74 79 | 2e 0a 2a 20 48 50 2f 55 | utility|..* HP/U|
|000037b0| 58 20 63 61 6c 6c 73 20 | 61 20 73 69 6d 69 6c 61 |X calls |a simila|
|000037c0| 72 20 75 74 69 6c 69 74 | 79 20 64 75 6d 70 6d 73 |r utilit|y dumpms|
|000037d0| 67 2e 0a 0a 0a 35 2e 32 | 20 53 75 6e 2f 58 56 69 |g....5.2| Sun/XVi|
|000037e0| 65 77 0a 53 75 6e 20 69 | 6d 70 6c 65 6d 65 6e 74 |ew.Sun i|mplement|
|000037f0| 73 20 61 20 64 69 66 66 | 65 72 65 6e 74 20 73 65 |s a diff|erent se|
|00003800| 74 20 6f 66 20 66 75 6e | 63 74 69 6f 6e 73 20 66 |t of fun|ctions f|
|00003810| 75 6e 63 74 69 6f 6e 73 | 20 74 6f 20 73 75 70 70 |unctions| to supp|
|00003820| 6f 72 74 20 69 31 38 6e | 0a 6f 66 20 6d 65 73 73 |ort i18n|.of mess|
|00003830| 61 67 65 73 20 28 74 68 | 65 20 73 6f 75 72 63 65 |ages (th|e source|
|00003840| 20 69 73 20 61 76 61 69 | 6c 61 62 6c 65 20 77 69 | is avai|lable wi|
|00003850| 74 68 20 74 68 65 20 58 | 56 69 65 77 20 63 6f 64 |th the X|View cod|
|00003860| 65 29 3a 20 0a 0a 59 6f | 75 20 63 61 6e 20 65 69 |e): ..Yo|u can ei|
|00003870| 74 68 65 72 20 75 73 65 | 3a 0a 2d 2d 2d 2d 2d 2d |ther use|:.------|
|00003880| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003890| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000038a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0a 0a 6d 61 69 6e 28 |--------|-..main(|
|000038b0| 29 0a 7b 0a 09 2f 2f 20 | 67 65 74 20 74 68 65 20 |).{..// |get the |
|000038c0| 6d 65 73 73 61 67 65 20 | 63 61 74 61 6c 6f 67 20 |message |catalog |
|000038d0| 6e 61 6d 65 64 20 22 68 | 65 6c 6c 6f 70 72 6f 67 |named "h|elloprog|
|000038e0| 72 61 6d 22 20 0a 09 2f | 2f 20 66 6f 72 20 74 68 |ram" ../|/ for th|
|000038f0| 65 20 68 65 6c 6c 6f 20 | 77 6f 72 6c 64 20 70 72 |e hello |world pr|
|00003900| 6f 67 72 61 6d 0a 09 74 | 65 78 74 64 6f 6d 61 69 |ogram..t|extdomai|
|00003910| 6e 28 22 68 65 6c 6c 6f | 70 72 6f 67 72 61 6d 22 |n("hello|program"|
|00003920| 29 3b 09 0a 0a 09 2f 2f | 20 67 65 74 20 74 68 65 |);....//| get the|
|00003930| 20 74 72 61 6e 73 6c 61 | 74 69 6f 6e 20 66 6f 72 | transla|tion for|
|00003940| 20 74 68 65 20 22 48 65 | 6c 6c 6f 2c 20 77 6f 72 | the "He|llo, wor|
|00003950| 6c 64 5c 6e 22 20 73 74 | 72 69 6e 67 0a 09 70 72 |ld\n" st|ring..pr|
|00003960| 69 6e 74 66 28 67 65 74 | 74 65 78 74 28 22 48 65 |intf(get|text("He|
|00003970| 6c 6c 6f 2c 20 77 6f 72 | 6c 64 5c 6e 22 29 29 3b |llo, wor|ld\n"));|
|00003980| 0a 7d 0a 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.}.-----|--------|
|00003990| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000039a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000039b0| 2d 2d 0a 0a 6f 72 20 79 | 6f 75 20 63 61 6e 20 72 |--..or y|ou can r|
|000039c0| 6f 6c 6c 20 61 6c 6c 20 | 69 6e 20 6f 6e 65 20 61 |oll all |in one a|
|000039d0| 6e 64 20 77 72 69 74 65 | 0a 0a 2d 2d 2d 2d 2d 2d |nd write|..------|
|000039e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000039f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003a00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0a 6d 61 69 6e 28 29 |--------|-.main()|
|00003a10| 0a 7b 0a 09 2f 2f 20 67 | 65 74 20 74 68 65 20 74 |.{..// g|et the t|
|00003a20| 72 61 6e 73 6c 61 74 69 | 6f 6e 20 66 6f 72 20 74 |ranslati|on for t|
|00003a30| 68 65 20 22 48 65 6c 6c | 6f 2c 20 77 6f 72 6c 64 |he "Hell|o, world|
|00003a40| 5c 6e 22 20 73 74 72 69 | 6e 67 20 0a 09 2f 2f 20 |\n" stri|ng ..// |
|00003a50| 66 72 6f 6d 20 74 68 65 | 20 6d 65 73 73 61 67 65 |from the| message|
|00003a60| 20 63 61 74 61 6c 6f 67 | 20 22 68 65 6c 6c 6f 70 | catalog| "hellop|
|00003a70| 72 6f 67 72 61 6d 22 0a | 09 70 72 69 6e 74 66 28 |rogram".|.printf(|
|00003a80| 64 67 65 74 74 65 78 74 | 28 22 68 65 6c 6c 6f 70 |dgettext|("hellop|
|00003a90| 72 6f 67 72 61 6d 22 2c | 22 48 65 6c 6c 6f 2c 20 |rogram",|"Hello, |
|00003aa0| 77 6f 72 6c 64 5c 6e 22 | 29 29 3b 0a 7d 0a 2d 2d |world\n"|));.}.--|
|00003ab0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003ac0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003ad0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0a 0a 54 |--------|-----..T|
|00003ae0| 68 65 20 4c 43 5f 4d 45 | 53 53 41 47 45 53 20 6c |he LC_ME|SSAGES l|
|00003af0| 6f 63 61 6c 65 20 63 61 | 74 65 67 6f 72 79 20 73 |ocale ca|tegory s|
|00003b00| 65 74 74 69 6e 67 20 64 | 65 74 65 72 6d 69 6e 65 |etting d|etermine|
|00003b10| 73 20 74 68 65 20 6c 6f | 63 61 6c 65 20 6f 66 0a |s the lo|cale of.|
|00003b20| 73 74 72 69 6e 67 73 20 | 74 68 61 74 20 67 65 74 |strings |that get|
|00003b30| 74 65 78 74 28 29 20 72 | 65 74 75 72 6e 73 2e 20 |text() r|eturns. |
|00003b40| 20 54 68 65 20 6d 65 73 | 73 61 67 65 20 63 61 74 | The mes|sage cat|
|00003b50| 61 6c 6f 67 73 20 61 72 | 65 20 67 65 6e 65 72 61 |alogs ar|e genera|
|00003b60| 74 65 64 0a 77 69 74 68 | 20 65 69 74 68 65 72 20 |ted.with| either |
|00003b70| 74 68 65 20 69 6e 73 74 | 61 6c 6c 74 78 74 20 6f |the inst|alltxt o|
|00003b80| 72 20 67 65 6e 63 61 74 | 20 63 6f 6d 6d 61 6e 64 |r gencat| command|
|00003b90| 73 2e 0a 0a 4e 6f 20 6f | 70 65 6e 69 6e 67 20 6f |s...No o|pening o|
|00003ba0| 66 20 66 69 6c 65 73 20 | 61 73 20 69 6e 20 74 68 |f files |as in th|
|00003bb0| 65 20 6f 6c 64 20 53 59 | 53 20 56 20 61 6e 64 20 |e old SY|S V and |
|00003bc0| 58 2f 4f 70 65 6e 20 72 | 6f 75 74 69 6e 65 73 2c |X/Open r|outines,|
|00003bd0| 20 61 6e 64 20 6e 6f 0a | 68 61 6e 64 6c 69 6e 67 | and no.|handling|
|00003be0| 20 6f 66 20 6d 65 73 73 | 61 67 65 20 6e 75 6d 62 | of mess|age numb|
|00003bf0| 65 72 73 20 74 68 61 74 | 20 79 6f 75 20 6d 75 73 |ers that| you mus|
|00003c00| 74 20 68 61 76 65 20 69 | 6e 20 61 20 64 61 74 61 |t have i|n a data|
|00003c10| 62 61 73 65 20 74 6f 0a | 61 64 6d 69 6e 69 73 74 |base to.|administ|
|00003c20| 65 72 2e 20 20 48 6f 77 | 65 76 65 72 2c 20 74 68 |er. How|ever, th|
|00003c30| 69 73 20 6d 65 63 68 61 | 6e 69 73 6d 20 69 73 20 |is mecha|nism is |
|00003c40| 6f 6e 6c 79 20 73 75 70 | 70 6f 72 74 65 64 20 62 |only sup|ported b|
|00003c50| 79 20 53 75 6e 2e 20 20 | 53 75 6e 0a 74 72 69 65 |y Sun. |Sun.trie|
|00003c60| 64 20 74 6f 20 70 75 73 | 68 20 69 74 20 69 6e 74 |d to pus|h it int|
|00003c70| 6f 20 43 4f 53 45 2c 20 | 62 75 74 20 77 69 74 68 |o COSE, |but with|
|00003c80| 6f 75 74 20 73 75 63 63 | 65 73 73 2e 0a 0a 0a 35 |out succ|ess....5|
|00003c90| 2e 33 20 50 4f 53 49 58 | 20 6c 61 6e 67 75 61 67 |.3 POSIX| languag|
|00003ca0| 65 20 69 6e 64 65 70 65 | 6e 64 65 6e 74 20 6d 65 |e indepe|ndent me|
|00003cb0| 73 73 61 67 65 73 0a 4e | 65 69 74 68 65 72 20 6f |ssages.N|either o|
|00003cc0| 66 20 74 68 65 20 70 72 | 65 76 69 6f 75 73 20 74 |f the pr|evious t|
|00003cd0| 77 6f 20 6d 65 63 68 61 | 6e 69 73 6d 73 20 69 73 |wo mecha|nisms is|
|00003ce0| 20 69 6e 20 74 68 65 20 | 50 4f 53 49 58 20 73 74 | in the |POSIX st|
|00003cf0| 61 6e 64 61 72 64 2e 0a | 54 68 65 72 65 20 77 61 |andard..|There wa|
|00003d00| 73 20 6d 75 63 68 20 64 | 69 73 61 67 72 65 65 6d |s much d|isagreem|
|00003d10| 65 6e 74 20 69 6e 20 74 | 68 65 20 50 4f 53 49 58 |ent in t|he POSIX|
|00003d20| 2e 31 20 63 6f 6d 6d 69 | 74 74 65 65 20 61 62 6f |.1 commi|ttee abo|
|00003d30| 75 74 20 75 73 69 6e 67 | 20 74 68 65 0a 67 65 74 |ut using| the.get|
|00003d40| 74 65 78 74 20 72 6f 75 | 74 69 6e 65 73 20 76 73 |text rou|tines vs|
|00003d50| 2e 20 63 61 74 67 65 74 | 73 20 28 58 50 47 29 2e |. catget|s (XPG).|
|00003d60| 20 20 49 6e 20 74 68 65 | 20 65 6e 64 20 74 68 65 | In the| end the|
|00003d70| 20 63 6f 6d 6d 69 74 74 | 65 65 20 63 6f 75 6c 64 | committ|ee could|
|00003d80| 6e 27 74 0a 61 67 72 65 | 65 20 6f 6e 20 61 6e 79 |n't.agre|e on any|
|00003d90| 74 68 69 6e 67 2c 20 73 | 6f 20 6e 6f 20 6d 65 73 |thing, s|o no mes|
|00003da0| 73 61 67 69 6e 67 20 73 | 79 73 74 65 6d 20 77 61 |saging s|ystem wa|
|00003db0| 73 20 69 6e 63 6c 75 64 | 65 64 20 61 73 20 70 61 |s includ|ed as pa|
|00003dc0| 72 74 20 6f 66 20 74 68 | 65 0a 73 74 61 6e 64 61 |rt of th|e.standa|
|00003dd0| 72 64 2e 20 49 20 62 65 | 6c 69 65 76 65 20 74 68 |rd. I be|lieve th|
|00003de0| 65 20 69 6e 66 6f 72 6d | 61 74 69 76 65 20 61 6e |e inform|ative an|
|00003df0| 6e 65 78 20 6f 66 20 74 | 68 65 20 73 74 61 6e 64 |nex of t|he stand|
|00003e00| 61 72 64 20 69 6e 63 6c | 75 64 65 73 20 74 68 65 |ard incl|udes the|
|00003e10| 0a 58 50 47 33 20 6d 65 | 73 73 61 67 69 6e 67 20 |.XPG3 me|ssaging |
|00003e20| 69 6e 74 65 72 66 61 63 | 65 73 2c 20 22 2e 2e 2e |interfac|es, "...|
|00003e30| 61 73 20 61 6e 20 65 78 | 61 6d 70 6c 65 20 6f 66 |as an ex|ample of|
|00003e40| 20 61 20 6d 65 73 73 61 | 67 69 6e 67 20 73 79 73 | a messa|ging sys|
|00003e50| 74 65 6d 0a 74 68 61 74 | 20 68 61 73 20 62 65 65 |tem.that| has bee|
|00003e60| 6e 20 69 6d 70 6c 65 6d | 65 6e 74 65 64 2e 2e 2e |n implem|ented...|
|00003e70| 22 0a 0a 54 68 65 79 20 | 77 65 72 65 20 76 65 72 |"..They |were ver|
|00003e80| 79 20 63 61 72 65 66 75 | 6c 20 6e 6f 74 20 74 6f |y carefu|l not to|
|00003e90| 20 73 61 79 20 61 6e 79 | 77 68 65 72 65 20 74 68 | say any|where th|
|00003ea0| 61 74 20 79 6f 75 20 73 | 68 6f 75 6c 64 20 75 73 |at you s|hould us|
|00003eb0| 65 20 6f 6e 65 20 73 65 | 74 0a 6f 66 20 69 6e 74 |e one se|t.of int|
|00003ec0| 65 72 66 61 63 65 73 20 | 6f 76 65 72 20 74 68 65 |erfaces |over the|
|00003ed0| 20 6f 74 68 65 72 2e 0a | 0a 0a 0a 36 2e 20 4f 74 | other..|...6. Ot|
|00003ee0| 68 65 72 20 6c 6f 63 61 | 6c 69 7a 61 74 69 6f 6e |her loca|lization|
|00003ef0| 20 61 73 70 65 63 74 73 | 20 69 6e 20 49 53 4f 2f | aspects| in ISO/|
|00003f00| 41 4e 53 49 20 43 20 28 | 61 6e 64 20 50 4f 53 49 |ANSI C (|and POSI|
|00003f10| 58 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 73 29 0a |X enviro|nments).|
|00003f20| 46 6f 72 20 61 20 6d 6f | 72 65 20 74 68 6f 72 6f |For a mo|re thoro|
|00003f30| 75 67 68 20 64 69 73 63 | 75 73 73 69 6f 6e 20 6f |ugh disc|ussion o|
|00003f40| 66 20 6c 6f 63 61 6c 69 | 7a 61 74 69 6f 6e 20 61 |f locali|zation a|
|00003f50| 6e 64 0a 69 6e 74 65 72 | 6e 61 74 69 6f 6e 61 6c |nd.inter|national|
|00003f60| 69 7a 61 74 69 6f 6e 20 | 28 61 6b 61 2e 20 69 31 |ization |(aka. i1|
|00003f70| 38 6e 29 2c 20 63 68 65 | 63 6b 20 79 6f 75 72 20 |8n), che|ck your |
|00003f80| 73 79 73 74 65 6d 20 76 | 65 6e 64 6f 72 73 0a 64 |system v|endors.d|
|00003f90| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 2c 20 61 6e |ocumenta|tion, an|
|00003fa0| 64 20 74 68 65 20 43 20 | 6c 69 62 72 61 72 79 20 |d the C |library |
|00003fb0| 6d 61 6e 75 61 6c 20 77 | 68 69 63 68 20 63 6f 6d |manual w|hich com|
|00003fc0| 65 73 20 77 69 74 68 20 | 74 68 65 20 46 53 46 27 |es with |the FSF'|
|00003fd0| 73 0a 67 6c 69 62 63 20 | 6c 69 62 72 61 72 79 20 |s.glibc |library |
|00003fe0| 28 43 68 61 70 74 65 72 | 20 31 39 2c 20 27 4c 6f |(Chapter| 19, 'Lo|
|00003ff0| 63 61 6c 65 73 20 61 6e | 64 20 49 6e 74 65 72 6e |cales an|d Intern|
|00004000| 61 74 69 6f 6e 61 6c 69 | 7a 61 74 69 6f 6e 27 29 |ationali|zation')|
|00004010| 2e 0a 0a 0a 0a 37 2e 20 | 49 6e 74 65 72 6e 61 74 |.....7. |Internat|
|00004020| 69 6f 6e 61 6c 69 7a 61 | 74 69 6f 6e 20 75 6e 64 |ionaliza|tion und|
|00004030| 65 72 20 58 31 31 0a 57 | 68 69 6c 65 20 58 31 31 |er X11.W|hile X11|
|00004040| 20 69 73 20 66 61 72 74 | 68 65 72 20 74 68 61 6e | is fart|her than|
|00004050| 20 6d 6f 73 74 20 73 79 | 73 74 65 6d 20 73 6f 66 | most sy|stem sof|
|00004060| 74 77 61 72 65 20 77 68 | 65 6e 20 69 74 20 63 6f |tware wh|en it co|
|00004070| 6d 65 73 20 74 6f 0a 69 | 6e 74 65 72 6e 61 74 69 |mes to.i|nternati|
|00004080| 6f 6e 61 6c 69 7a 61 74 | 69 6f 6e 2c 20 69 74 20 |onalizat|ion, it |
|00004090| 73 74 69 6c 6c 20 63 6f | 6e 74 61 69 6e 73 20 6d |still co|ntains m|
|000040a0| 61 6e 79 20 62 75 67 73 | 2e 20 20 41 20 6e 75 6d |any bugs|. A num|
|000040b0| 62 65 72 20 6f 66 20 62 | 75 67 0a 66 69 78 65 73 |ber of b|ug.fixes|
|000040c0| 20 63 61 6e 20 62 65 20 | 66 6f 75 6e 64 20 61 74 | can be |found at|
|000040d0| 20 55 52 4c 20 68 74 74 | 70 3a 2f 2f 77 77 77 2e | URL htt|p://www.|
|000040e0| 64 74 65 6b 2e 63 68 61 | 6c 6d 65 72 73 2e 73 65 |dtek.cha|lmers.se|
|000040f0| 3a 38 30 2f 7e 6d 61 66 | 2f 69 31 38 6e 2f 2e 0a |:80/~maf|/i18n/..|
|00004100| 0a 37 2e 31 20 4f 75 74 | 70 75 74 0a 54 6f 20 6f |.7.1 Out|put.To o|
|00004110| 75 74 70 75 74 20 74 65 | 78 74 20 65 6e 63 6f 64 |utput te|xt encod|
|00004120| 65 64 20 77 69 74 68 20 | 49 53 4f 20 38 38 35 39 |ed with |ISO 8859|
|00004130| 2d 31 20 75 6e 64 65 72 | 20 58 31 31 2c 20 73 69 |-1 under| X11, si|
|00004140| 6d 70 6c 79 20 69 6e 76 | 6f 6b 65 20 74 68 65 20 |mply inv|oke the |
|00004150| 58 0a 64 69 73 70 6c 61 | 79 20 72 6f 75 74 69 6e |X.displa|y routin|
|00004160| 65 73 20 77 69 74 68 20 | 38 20 62 69 74 20 63 68 |es with |8 bit ch|
|00004170| 61 72 61 63 74 65 72 73 | 20 61 73 20 79 6f 75 20 |aracters| as you |
|00004180| 77 6f 75 6c 64 20 75 73 | 65 20 74 68 65 6d 20 77 |would us|e them w|
|00004190| 69 74 68 0a 37 2d 62 69 | 74 20 41 53 43 49 49 2e |ith.7-bi|t ASCII.|
|000041a0| 20 20 59 6f 75 20 73 68 | 6f 75 6c 64 20 68 6f 77 | You sh|ould how|
|000041b0| 65 76 65 72 20 63 68 6f | 6f 73 65 20 61 20 66 6f |ever cho|ose a fo|
|000041c0| 6e 74 20 77 68 69 63 68 | 20 63 6f 6e 74 61 69 6e |nt which| contain|
|000041d0| 73 20 62 69 74 6d 61 70 | 73 0a 66 6f 72 20 74 68 |s bitmap|s.for th|
|000041e0| 65 73 65 20 63 68 61 72 | 61 63 74 65 72 73 2e 20 |ese char|acters. |
|000041f0| 20 59 6f 75 20 63 61 6e | 20 75 73 65 20 74 68 65 | You can| use the|
|00004200| 20 78 66 64 20 75 74 69 | 6c 69 74 79 20 74 6f 20 | xfd uti|lity to |
|00004210| 64 69 73 70 6c 61 79 20 | 61 20 66 6f 6e 74 0a 74 |display |a font.t|
|00004220| 6f 20 76 65 72 69 66 79 | 20 74 68 61 74 20 69 74 |o verify| that it|
|00004230| 20 63 6f 6e 74 61 69 6e | 73 20 61 20 66 75 6c 6c | contain|s a full|
|00004240| 20 73 65 74 20 6f 66 20 | 63 68 61 72 61 63 74 65 | set of |characte|
|00004250| 72 73 2e 0a 0a 0a 37 2e | 32 20 49 6e 70 75 74 0a |rs....7.|2 Input.|
|00004260| 49 66 20 79 6f 75 20 75 | 73 65 20 61 20 6e 61 74 |If you u|se a nat|
|00004270| 69 6f 6e 61 6c 20 6b 65 | 79 62 6f 61 72 64 20 28 |ional ke|yboard (|
|00004280| 74 68 61 74 20 69 73 20 | 61 20 6b 65 79 62 6f 61 |that is |a keyboa|
|00004290| 72 64 2c 20 77 68 69 63 | 68 20 68 61 73 20 64 69 |rd, whic|h has di|
|000042a0| 73 74 69 6e 63 74 0a 6b | 65 79 73 20 66 6f 72 20 |stinct.k|eys for |
|000042b0| 79 6f 75 72 20 63 6f 75 | 6e 74 72 69 65 73 20 73 |your cou|ntries s|
|000042c0| 70 65 63 69 61 6c 20 63 | 68 61 72 61 63 74 65 72 |pecial c|haracter|
|000042d0| 73 29 2c 20 69 6e 70 75 | 74 74 69 6e 67 20 61 63 |s), inpu|tting ac|
|000042e0| 63 65 6e 74 73 20 69 73 | 0a 73 74 72 61 69 67 68 |cents is|.straigh|
|000042f0| 74 20 66 6f 72 77 61 72 | 64 20 61 6e 64 20 79 6f |t forwar|d and yo|
|00004300| 75 27 6c 6c 20 67 65 74 | 20 74 68 65 20 63 6f 72 |u'll get| the cor|
|00004310| 72 65 73 70 6f 6e 64 69 | 6e 67 20 63 68 61 72 61 |respondi|ng chara|
|00004320| 63 74 65 72 73 20 62 79 | 20 75 73 69 6e 67 0a 74 |cters by| using.t|
|00004330| 68 65 20 58 31 31 20 69 | 6e 70 75 74 20 66 75 6e |he X11 i|nput fun|
|00004340| 63 74 69 6f 6e 73 2e 0a | 0a 53 6f 6d 65 74 69 6d |ctions..|.Sometim|
|00004350| 65 73 20 69 74 20 6d 61 | 79 20 62 65 20 6e 65 63 |es it ma|y be nec|
|00004360| 65 73 73 61 72 79 20 74 | 6f 20 69 6e 70 75 74 20 |essary t|o input |
|00004370| 63 68 61 72 61 63 74 65 | 72 73 20 66 6f 72 20 77 |characte|rs for w|
|00004380| 68 69 63 68 20 74 68 65 | 72 65 20 61 72 65 0a 6e |hich the|re are.n|
|00004390| 6f 20 6b 65 79 73 20 6f | 6e 20 79 6f 75 72 20 6b |o keys o|n your k|
|000043a0| 65 79 62 6f 61 72 64 20 | 28 65 2e 67 2e 20 69 66 |eyboard |(e.g. if|
|000043b0| 20 79 6f 75 20 77 61 6e | 74 20 74 6f 20 65 6e 74 | you wan|t to ent|
|000043c0| 65 72 20 74 68 65 20 47 | 65 72 6d 61 6e 20 27 df |er the G|erman '.|
|000043d0| 27 0a 66 72 6f 6d 20 61 | 20 46 72 65 6e 63 68 20 |'.from a| French |
|000043e0| 6b 65 79 62 6f 61 72 64 | 29 2e 20 20 0a 0a 0a 22 |keyboard|). ..."|
|000043f0| 58 31 31 52 35 20 61 6e | 64 20 58 31 31 52 36 20 |X11R5 an|d X11R6 |
|00004400| 62 6f 74 68 20 68 61 76 | 65 20 65 78 74 65 6e 73 |both hav|e extens|
|00004410| 69 76 65 20 73 75 70 70 | 6f 72 74 20 66 6f 72 20 |ive supp|ort for |
|00004420| 69 31 38 6e 2c 20 62 75 | 74 20 64 75 65 20 74 6f |i18n, bu|t due to|
|00004430| 20 61 0a 76 61 72 69 65 | 74 79 20 6f 66 20 66 61 | a.varie|ty of fa|
|00004440| 63 74 6f 72 73 20 74 68 | 65 20 52 35 20 69 31 38 |ctors th|e R5 i18|
|00004450| 6e 20 77 61 73 20 6e 6f | 74 20 77 65 6c 6c 20 75 |n was no|t well u|
|00004460| 6e 64 65 72 73 74 6f 6f | 64 20 6f 72 20 77 69 64 |nderstoo|d or wid|
|00004470| 65 6c 79 0a 75 73 65 64 | 2e 20 20 4d 61 6e 79 20 |ely.used|. Many |
|00004480| 70 65 6f 70 6c 65 20 72 | 65 73 6f 72 74 65 64 20 |people r|esorted |
|00004490| 74 6f 20 61 20 77 6f 72 | 6b 2d 61 72 6f 75 6e 64 |to a wor|k-around|
|000044a0| 20 61 6e 64 20 6d 69 67 | 68 74 20 68 61 76 65 20 | and mig|ht have |
|000044b0| 62 65 65 6e 0a 64 69 73 | 61 70 70 6f 69 6e 74 65 |been.dis|appointe|
|000044c0| 64 20 77 68 65 6e 20 52 | 36 20 64 69 64 20 6e 6f |d when R|6 did no|
|000044d0| 74 20 69 6e 63 6c 75 64 | 65 20 74 68 69 73 20 66 |t includ|e this f|
|000044e0| 65 61 74 75 72 65 2e 20 | 20 49 74 20 69 73 20 69 |eature. | It is i|
|000044f0| 6d 70 6f 72 74 61 6e 74 | 0a 74 6f 20 72 65 63 6f |mportant|.to reco|
|00004500| 67 6e 69 7a 65 20 74 68 | 61 74 20 74 68 65 20 63 |gnize th|at the c|
|00004510| 6f 72 72 65 63 74 20 75 | 73 65 20 6f 66 20 52 35 |orrect u|se of R5|
|00004520| 20 61 6e 64 20 52 36 20 | 69 31 38 6e 20 66 65 61 | and R6 |i18n fea|
|00004530| 74 75 72 65 73 20 77 69 | 6c 6c 0a 65 6e 73 75 72 |tures wi|ll.ensur|
|00004540| 65 20 6d 61 78 69 6d 75 | 6d 20 70 6f 72 74 61 62 |e maximu|m portab|
|00004550| 69 6c 69 74 79 20 6f 66 | 20 79 6f 75 72 20 70 72 |ility of| your pr|
|00004560| 6f 67 72 61 6d 2e 22 20 | 5b 58 20 43 6f 6e 73 6f |ogram." |[X Conso|
|00004570| 72 74 69 75 6d 27 73 20 | 76 69 65 77 5d 0a 0a 55 |rtium's |view]..U|
|00004580| 6e 66 6f 72 74 75 6e 61 | 74 65 6c 79 2c 20 6e 6f |nfortuna|tely, no|
|00004590| 74 20 65 76 65 6e 20 74 | 68 65 20 78 74 65 72 6d |t even t|he xterm|
|000045a0| 20 74 65 72 6d 69 6e 61 | 6c 20 65 6d 75 6c 61 74 | termina|l emulat|
|000045b0| 6f 72 20 73 75 70 70 6c | 69 65 64 20 77 69 74 68 |or suppl|ied with|
|000045c0| 20 74 68 65 0a 58 31 31 | 20 64 69 73 74 72 69 62 | the.X11| distrib|
|000045d0| 75 74 69 6f 6e 20 62 79 | 20 74 68 65 20 58 20 43 |ution by| the X C|
|000045e0| 6f 6e 73 6f 72 74 69 75 | 6d 20 73 75 70 70 6f 72 |onsortiu|m suppor|
|000045f0| 74 73 20 74 68 69 73 20 | 69 6e 70 75 74 20 6d 65 |ts this |input me|
|00004600| 74 68 6f 64 0a 6d 65 63 | 68 61 6e 69 73 6d 2e 20 |thod.mec|hanism. |
|00004610| 20 54 68 65 20 6c 61 63 | 6b 20 6f 66 20 6d 69 73 | The lac|k of mis|
|00004620| 73 69 6e 67 20 63 6f 64 | 65 20 73 61 6d 70 6c 65 |sing cod|e sample|
|00004630| 73 20 28 61 6e 64 20 73 | 75 70 70 6f 72 74 20 66 |s (and s|upport f|
|00004640| 6f 72 20 74 68 69 73 0a | 66 65 61 74 75 72 65 20 |or this.|feature |
|00004650| 69 6e 20 73 6f 6d 65 20 | 6e 6f 6e 2d 65 73 73 65 |in some |non-esse|
|00004660| 6e 74 69 61 6c 2c 20 62 | 75 74 20 77 69 64 65 6c |ntial, b|ut widel|
|00004670| 79 20 75 73 65 64 20 58 | 31 31 20 70 61 72 74 73 |y used X|11 parts|
|00004680| 29 20 6d 61 79 20 68 61 | 76 65 0a 63 6f 6e 74 72 |) may ha|ve.contr|
|00004690| 69 62 75 74 65 64 20 74 | 6f 20 74 68 69 73 20 73 |ibuted t|o this s|
|000046a0| 69 74 75 61 74 69 6f 6e | 2e 0a 0a 0a 46 6f 6f 74 |ituation|....Foot|
|000046b0| 6e 6f 74 65 3a 20 41 6d | 6f 6e 67 73 74 20 6f 74 |note: Am|ongst ot|
|000046c0| 68 65 72 20 72 65 61 73 | 6f 6e 73 2c 20 74 68 65 |her reas|ons, the|
|000046d0| 20 58 20 43 6f 6e 73 6f | 72 74 69 75 6d 20 64 65 | X Conso|rtium de|
|000046e0| 63 69 73 69 6f 6e 20 6e | 6f 74 20 74 6f 20 61 64 |cision n|ot to ad|
|000046f0| 64 0a 73 75 70 70 6f 72 | 74 20 66 6f 72 20 69 6e |d.suppor|t for in|
|00004700| 70 75 74 20 6d 65 74 68 | 6f 64 73 20 74 6f 20 74 |put meth|ods to t|
|00004710| 68 65 20 58 61 77 20 41 | 74 68 65 6e 61 20 77 69 |he Xaw A|thena wi|
|00004720| 64 67 65 74 20 63 6f 6e | 74 72 69 62 75 74 65 73 |dget con|tributes|
|00004730| 20 74 6f 20 74 68 69 73 | 0a 73 69 74 75 61 74 69 | to this|.situati|
|00004740| 6f 6e 2e 20 20 58 61 77 | 20 69 73 20 6f 66 66 69 |on. Xaw| is offi|
|00004750| 63 69 61 6c 6c 79 20 6e | 6f 74 20 73 75 70 70 6f |cially n|ot suppo|
|00004760| 72 74 65 64 20 62 79 20 | 74 68 65 20 58 20 43 6f |rted by |the X Co|
|00004770| 6e 73 6f 72 74 69 75 6d | 2c 20 61 6e 64 0a 74 68 |nsortium|, and.th|
|00004780| 75 73 20 68 61 73 20 6f | 6e 6c 79 20 6d 61 72 67 |us has o|nly marg|
|00004790| 69 6e 61 6c 6c 79 20 62 | 65 65 6e 20 69 6d 70 72 |inally b|een impr|
|000047a0| 6f 76 65 64 20 73 69 6e | 63 65 20 58 31 31 52 34 |oved sin|ce X11R4|
|000047b0| 2e 20 20 48 6f 77 65 76 | 65 72 2c 20 6d 61 6e 79 |. Howev|er, many|
|000047c0| 0a 75 73 65 72 73 20 28 | 61 6e 64 20 6d 75 63 68 |.users (|and much|
|000047d0| 20 6f 66 20 74 68 65 20 | 50 44 20 73 6f 66 74 77 | of the |PD softw|
|000047e0| 61 72 65 29 20 6c 69 76 | 65 20 69 6e 20 61 6e 20 |are) liv|e in an |
|000047f0| 58 61 77 2d 6f 6e 6c 79 | 20 77 6f 72 6c 64 2c 20 |Xaw-only| world, |
|00004800| 73 6f 20 74 68 65 79 0a | 77 69 6c 6c 20 6e 6f 74 |so they.|will not|
|00004810| 20 62 65 20 61 62 6c 65 | 20 74 6f 20 62 65 6e 65 | be able| to bene|
|00004820| 66 69 74 20 66 72 6f 6d | 20 74 68 69 73 20 69 31 |fit from| this i1|
|00004830| 38 6e 20 65 66 66 6f 72 | 74 2e 0a 0a 58 31 31 20 |8n effor|t...X11 |
|00004840| 52 35 20 61 6e 64 20 52 | 36 20 73 75 70 70 6f 72 |R5 and R|6 suppor|
|00004850| 74 20 69 6e 70 75 74 20 | 6d 65 74 68 6f 64 73 20 |t input |methods |
|00004860| 66 6f 72 20 65 6e 74 65 | 72 69 6e 67 20 6e 6f 6e |for ente|ring non|
|00004870| 2d 41 53 43 49 49 2c 20 | 61 6e 64 0a 64 69 73 70 |-ASCII, |and.disp|
|00004880| 6c 61 79 69 6e 67 20 61 | 6e 64 20 63 6f 6e 66 69 |laying a|nd confi|
|00004890| 67 75 72 69 6e 67 20 74 | 65 78 74 2c 20 6d 65 6e |guring t|ext, men|
|000048a0| 75 73 20 65 74 63 2e 20 | 66 6f 72 20 61 20 77 69 |us etc. |for a wi|
|000048b0| 64 65 20 76 61 72 69 65 | 74 79 20 6f 66 0a 6c 61 |de varie|ty of.la|
|000048c0| 6e 67 75 61 67 65 73 2e | 20 20 54 68 69 73 20 69 |nguages.| This i|
|000048d0| 6e 70 75 74 20 6d 65 74 | 68 6f 64 20 68 61 73 20 |nput met|hod has |
|000048e0| 74 6f 20 62 65 20 69 6e | 73 74 61 6c 6c 65 64 20 |to be in|stalled |
|000048f0| 62 79 20 74 68 65 20 61 | 70 70 6c 69 63 61 74 69 |by the a|pplicati|
|00004900| 6f 6e 0a 62 79 20 63 61 | 6c 6c 73 20 74 6f 20 74 |on.by ca|lls to t|
|00004910| 68 65 20 58 6c 69 62 20 | 6c 69 62 72 61 72 79 20 |he Xlib |library |
|00004920| 28 6f 72 20 61 6e 20 58 | 74 20 74 6f 6f 6c 6b 69 |(or an X|t toolki|
|00004930| 74 20 63 61 6c 6c 29 2e | 0a 0a 5b 55 6e 64 65 72 |t call).|..[Under|
|00004940| 20 58 31 31 52 35 2c 20 | 73 6f 6d 65 20 58 20 73 | X11R5, |some X s|
|00004950| 65 72 76 65 72 73 20 28 | 6e 6f 74 61 62 6c 79 20 |ervers (|notably |
|00004960| 74 68 65 20 58 73 75 6e | 20 73 65 72 76 65 72 29 |the Xsun| server)|
|00004970| 20 77 69 6c 6c 20 6c 65 | 74 20 79 6f 75 0a 65 6e | will le|t you.en|
|00004980| 74 65 72 20 49 53 4f 20 | 63 68 61 72 61 63 74 65 |ter ISO |characte|
|00004990| 72 73 20 62 79 20 73 75 | 70 70 6c 79 69 6e 67 20 |rs by su|pplying |
|000049a0| 61 20 62 75 69 6c 74 2d | 69 6e 20 65 73 63 61 70 |a built-|in escap|
|000049b0| 65 20 6d 65 63 68 61 6e | 69 73 6d 2c 20 69 66 20 |e mechan|ism, if |
|000049c0| 6e 6f 0a 6b 65 79 73 20 | 66 6f 72 20 74 68 65 73 |no.keys |for thes|
|000049d0| 65 20 63 68 61 72 61 63 | 74 65 72 73 20 61 72 65 |e charac|ters are|
|000049e0| 20 6f 6e 20 79 6f 75 72 | 20 6b 65 79 62 6f 61 72 | on your| keyboar|
|000049f0| 64 2c 20 61 6e 64 20 77 | 69 6c 6c 20 70 61 73 73 |d, and w|ill pass|
|00004a00| 20 61 6c 6f 6e 67 0a 61 | 6e 64 20 64 69 73 70 6c | along.a|nd displ|
|00004a10| 61 79 20 49 53 4f 20 38 | 38 35 39 2d 31 2e 20 20 |ay ISO 8|859-1. |
|00004a20| 54 68 69 73 20 68 61 63 | 6b 20 6f 62 76 69 61 74 |This hac|k obviat|
|00004a30| 65 64 20 74 68 65 20 6e | 65 65 64 20 74 6f 20 69 |ed the n|eed to i|
|00004a40| 6e 73 74 61 6c 6c 20 61 | 6e 0a 69 6e 70 75 74 20 |nstall a|n.input |
|00004a50| 6d 65 74 68 6f 64 2c 20 | 62 75 74 20 77 61 73 20 |method, |but was |
|00004a60| 6c 65 73 73 20 66 6c 65 | 78 69 62 6c 65 2e 5d 20 |less fle|xible.] |
|00004a70| 20 0a 0a 0a 49 66 20 79 | 6f 75 20 61 72 65 20 75 | ...If y|ou are u|
|00004a80| 73 69 6e 67 20 61 20 74 | 6f 6f 6c 6b 69 74 2c 20 |sing a t|oolkit, |
|00004a90| 69 74 20 69 73 20 71 75 | 69 74 65 20 73 69 6d 70 |it is qu|ite simp|
|00004aa0| 6c 65 20 74 6f 20 73 75 | 70 70 6f 72 74 20 6c 6f |le to su|pport lo|
|00004ab0| 63 61 6c 69 7a 61 74 69 | 6f 6e 0a 6f 66 20 79 6f |calizati|on.of yo|
|00004ac0| 75 72 20 58 31 31 20 63 | 6f 64 65 3a 20 0a 49 66 |ur X11 c|ode: .If|
|00004ad0| 20 79 6f 75 27 72 65 20 | 75 73 69 6e 67 20 61 20 | you're |using a |
|00004ae0| 74 6f 6f 6c 6b 69 74 20 | 2d 2d 20 58 74 20 61 6e |toolkit |-- Xt an|
|00004af0| 64 20 61 20 77 69 64 67 | 65 74 20 73 65 74 20 6c |d a widg|et set l|
|00004b00| 69 6b 65 20 4d 6f 74 69 | 66 20 6f 72 20 52 36 20 |ike Moti|f or R6 |
|00004b10| 58 61 77 20 2d 2d 0a 79 | 6f 75 20 6e 65 65 64 20 |Xaw --.y|ou need |
|00004b20| 6f 6e 6c 79 20 61 64 64 | 20 61 20 73 69 6e 67 6c |only add| a singl|
|00004b30| 65 20 6c 69 6e 65 20 6f | 66 20 63 6f 64 65 20 74 |e line o|f code t|
|00004b40| 6f 20 79 6f 75 72 20 73 | 6f 75 72 63 65 2e 20 42 |o your s|ource. B|
|00004b50| 65 66 6f 72 65 20 61 6e | 79 20 6f 74 68 65 72 20 |efore an|y other |
|00004b60| 0a 63 61 6c 6c 73 20 74 | 6f 20 58 74 2c 20 61 64 |.calls t|o Xt, ad|
|00004b70| 64 20 61 20 63 61 6c 6c | 20 74 6f 20 58 74 53 65 |d a call| to XtSe|
|00004b80| 74 4c 61 6e 67 75 61 67 | 65 50 72 6f 63 2c 20 65 |tLanguag|eProc, e|
|00004b90| 2e 67 2e 3a 0a 20 0a 20 | 20 20 20 69 6e 74 20 6d |.g.:. . | int m|
|00004ba0| 61 69 6e 20 28 69 6e 74 | 20 61 72 67 63 2c 20 63 |ain (int| argc, c|
|00004bb0| 68 61 72 2a 2a 20 61 72 | 67 76 29 0a 20 20 20 20 |har** ar|gv). |
|00004bc0| 7b 0a 20 20 20 20 20 20 | 20 20 2e 2e 2e 0a 20 20 |{. | .... |
|00004bd0| 20 20 20 20 20 20 58 74 | 53 65 74 4c 61 6e 67 75 | Xt|SetLangu|
|00004be0| 61 67 65 50 72 6f 63 20 | 28 4e 55 4c 4c 2c 20 4e |ageProc |(NULL, N|
|00004bf0| 55 4c 4c 2c 20 4e 55 4c | 4c 29 3b 0a 20 20 20 20 |ULL, NUL|L);. |
|00004c00| 20 20 20 20 74 6f 70 20 | 3d 20 58 74 41 70 70 49 | top |= XtAppI|
|00004c10| 6e 69 74 69 61 6c 69 7a | 65 20 28 20 2e 2e 2e 20 |nitializ|e ( ... |
|00004c20| 29 3b 0a 20 20 20 20 20 | 20 20 20 2e 2e 2e 0a 20 |);. | .... |
|00004c30| 20 20 20 7d 0a 0a 54 68 | 65 20 4c 41 4e 47 20 61 | }..Th|e LANG a|
|00004c40| 6e 64 20 4c 43 5f 78 78 | 78 20 65 6e 76 69 72 6f |nd LC_xx|x enviro|
|00004c50| 6e 6d 65 6e 74 20 76 61 | 72 69 61 62 6c 65 73 20 |nment va|riables |
|00004c60| 28 73 65 65 20 73 65 63 | 74 69 6f 6e 20 33 29 20 |(see sec|tion 3) |
|00004c70| 77 69 6c 6c 20 74 68 65 | 6e 20 62 65 0a 75 73 65 |will the|n be.use|
|00004c80| 64 20 74 6f 20 64 65 74 | 65 72 6d 69 6e 65 20 74 |d to det|ermine t|
|00004c90| 68 65 20 27 69 6e 70 75 | 74 20 6d 65 74 68 6f 64 |he 'inpu|t method|
|00004ca0| 27 20 66 6f 72 20 74 68 | 69 73 20 58 20 61 70 70 |' for th|is X app|
|00004cb0| 6c 69 63 61 74 69 6f 6e | 2e 20 20 54 68 69 73 0a |lication|. This.|
|00004cc0| 69 6e 70 75 74 20 6d 65 | 74 68 6f 64 20 69 73 20 |input me|thod is |
|00004cd0| 72 65 73 70 6f 6e 73 69 | 62 6c 65 20 66 6f 72 20 |responsi|ble for |
|00004ce0| 6d 61 6e 61 67 69 6e 67 | 20 43 4f 4d 50 4f 53 45 |managing| COMPOSE|
|00004cf0| 20 63 68 61 72 61 63 74 | 65 72 20 73 65 71 75 65 | charact|er seque|
|00004d00| 6e 63 65 73 0a 6f 72 20 | 61 6e 79 20 6f 74 68 65 |nces.or |any othe|
|00004d10| 72 20 69 6e 70 75 74 20 | 6d 65 63 68 61 6e 69 73 |r input |mechanis|
|00004d20| 6d 20 66 6f 72 20 74 68 | 69 73 20 70 61 72 74 69 |m for th|is parti|
|00004d30| 63 75 6c 61 72 20 69 6d | 70 6c 65 6d 65 6e 74 61 |cular im|plementa|
|00004d40| 74 69 6f 6e 2e 20 20 41 | 6c 73 6f 0a 73 65 65 20 |tion. A|lso.see |
|00004d50| 73 65 63 74 69 6f 6e 20 | 39 20 6f 66 20 66 74 70 |section |9 of ftp|
|00004d60| 3a 2f 2f 66 74 70 2e 76 | 6c 73 69 76 69 65 2e 74 |://ftp.v|lsivie.t|
|00004d70| 75 77 69 65 6e 2e 61 63 | 2e 61 74 2f 70 75 62 2f |uwien.ac|.at/pub/|
|00004d80| 38 62 69 74 2f 46 41 51 | 2d 49 53 4f 2d 38 38 35 |8bit/FAQ|-ISO-885|
|00004d90| 39 2d 31 2c 0a 74 68 65 | 20 46 41 51 20 6f 6e 20 |9-1,.the| FAQ on |
|00004da0| 49 53 4f 20 38 38 35 39 | 2d 31 20 75 73 61 67 65 |ISO 8859|-1 usage|
|00004db0| 2e 0a 0a 0a 37 2e 33 20 | 54 6f 6f 6c 6b 69 74 73 |....7.3 |Toolkits|
|00004dc0| 2c 20 57 69 64 67 65 74 | 73 2c 20 61 6e 64 20 49 |, Widget|s, and I|
|00004dd0| 31 38 4e 0a 54 68 65 20 | 70 72 65 66 65 72 72 65 |18N.The |preferre|
|00004de0| 64 20 77 61 79 20 6f 66 | 20 69 6e 70 75 74 69 6e |d way of| inputin|
|00004df0| 67 20 6e 61 74 69 6f 6e | 61 6c 20 63 68 61 72 61 |g nation|al chara|
|00004e00| 63 74 65 72 73 20 77 68 | 65 6e 20 61 20 6e 61 74 |cters wh|en a nat|
|00004e10| 69 6f 6e 61 6c 0a 6b 65 | 79 62 6f 61 72 64 20 69 |ional.ke|yboard i|
|00004e20| 73 20 6e 6f 74 20 61 76 | 61 69 6c 61 62 6c 65 20 |s not av|ailable |
|00004e30| 69 73 20 6f 6e 65 2f 73 | 65 76 65 72 61 6c 20 69 |is one/s|everal i|
|00004e40| 6e 70 75 74 20 6d 65 74 | 68 6f 64 73 2e 20 20 54 |nput met|hods. T|
|00004e50| 68 65 73 65 20 69 6e 70 | 75 74 0a 6d 65 74 68 6f |hese inp|ut.metho|
|00004e60| 64 73 20 77 69 6c 6c 20 | 74 68 65 6e 20 73 75 70 |ds will |then sup|
|00004e70| 70 6f 72 74 20 76 61 72 | 69 6f 75 73 20 6b 69 6e |port var|ious kin|
|00004e80| 64 73 20 6f 66 20 63 6f | 6d 70 6f 73 65 20 73 65 |ds of co|mpose se|
|00004e90| 71 75 65 6e 63 65 73 20 | 74 6f 20 65 6e 74 65 72 |quences |to enter|
|00004ea0| 0a 6e 61 74 69 6f 6e 61 | 6c 20 63 68 61 72 61 63 |.nationa|l charac|
|00004eb0| 74 65 72 73 2e 0a 0a 54 | 68 65 20 65 6e 76 69 72 |ters...T|he envir|
|00004ec0| 6f 6e 6d 65 6e 74 20 76 | 61 72 69 61 62 6c 65 73 |onment v|ariables|
|00004ed0| 20 4c 41 4e 47 20 61 6e | 64 2f 6f 72 20 4c 43 5f | LANG an|d/or LC_|
|00004ee0| 78 78 78 20 73 65 6c 65 | 63 74 20 74 68 65 20 6c |xxx sele|ct the l|
|00004ef0| 61 6e 67 75 61 67 65 20 | 66 6f 72 0a 74 68 65 20 |anguage |for.the |
|00004f00| 49 6e 70 75 74 20 4d 65 | 74 68 6f 64 20 28 49 4d |Input Me|thod (IM|
|00004f10| 29 2c 20 62 75 74 20 69 | 66 20 73 65 76 65 72 61 |), but i|f severa|
|00004f20| 6c 20 69 6e 70 75 74 20 | 6d 65 74 68 6f 64 73 20 |l input |methods |
|00004f30| 65 78 69 73 74 2c 20 74 | 68 65 0a 65 6e 76 69 72 |exist, t|he.envir|
|00004f40| 6f 6e 6d 65 6e 74 20 76 | 61 72 69 61 62 6c 65 20 |onment v|ariable |
|00004f50| 58 4d 4f 44 49 46 49 45 | 52 53 20 63 61 6e 20 62 |XMODIFIE|RS can b|
|00004f60| 65 20 75 73 65 64 20 74 | 6f 20 73 65 6c 65 63 74 |e used t|o select|
|00004f70| 20 61 20 73 70 65 63 69 | 66 69 63 20 69 6e 70 75 | a speci|fic inpu|
|00004f80| 74 0a 6d 65 74 68 6f 64 | 2e 0a 0a 58 6c 69 62 2c |t.method|...Xlib,|
|00004f90| 20 58 74 20 61 6e 64 20 | 28 70 61 72 74 69 61 6c | Xt and |(partial|
|00004fa0| 6c 79 29 20 58 61 77 20 | 73 75 70 70 6f 72 74 20 |ly) Xaw |support |
|00004fb0| 49 4d 73 2e 20 20 54 68 | 75 73 2c 20 61 70 70 6c |IMs. Th|us, appl|
|00004fc0| 69 63 61 74 69 6f 6e 73 | 20 77 72 69 74 74 65 6e |ications| written|
|00004fd0| 0a 77 69 74 68 20 58 6c | 69 62 20 6f 72 20 58 74 |.with Xl|ib or Xt|
|00004fe0| 20 63 61 6e 20 73 75 70 | 70 6f 72 74 20 49 4d 73 | can sup|port IMs|
|00004ff0| 20 28 73 65 65 20 73 65 | 63 74 69 6f 6e 20 37 2e | (see se|ction 7.|
|00005000| 32 20 6f 6e 20 68 6f 77 | 20 74 6f 20 69 6e 73 74 |2 on how| to inst|
|00005010| 61 6c 6c 0a 69 6e 70 75 | 74 20 6d 65 74 68 6f 64 |all.inpu|t method|
|00005020| 73 20 75 6e 64 65 72 20 | 58 74 29 2e 0a 0a 4d 6f |s under |Xt)...Mo|
|00005030| 74 69 66 20 31 2e 32 20 | 20 6f 72 20 67 72 65 61 |tif 1.2 | or grea|
|00005040| 74 65 72 20 61 75 74 6f | 6d 61 74 69 63 61 6c 6c |ter auto|maticall|
|00005050| 79 20 75 73 65 73 20 74 | 68 65 20 52 35 2f 52 36 |y uses t|he R5/R6|
|00005060| 20 69 6e 70 75 74 20 6d | 65 74 68 6f 64 20 41 50 | input m|ethod AP|
|00005070| 49 73 2e 0a 54 68 75 73 | 20 61 70 70 6c 69 63 61 |Is..Thus| applica|
|00005080| 74 69 6f 6e 73 20 75 73 | 69 6e 67 20 4d 6f 74 69 |tions us|ing Moti|
|00005090| 66 20 31 2e 32 2b 20 63 | 61 6e 20 62 65 20 6d 61 |f 1.2+ c|an be ma|
|000050a0| 64 65 20 74 6f 20 73 75 | 70 70 6f 72 74 20 49 4d |de to su|pport IM|
|000050b0| 73 2e 0a 53 65 76 65 72 | 61 6c 20 4d 6f 74 69 66 |s..Sever|al Motif|
|000050c0| 20 31 2e 5b 30 31 5d 20 | 76 65 72 73 69 6f 6e 73 | 1.[01] |versions|
|000050d0| 20 61 6c 73 6f 20 68 61 | 64 20 73 69 6d 69 6c 61 | also ha|d simila|
|000050e0| 72 20 66 75 6e 63 74 69 | 6f 6e 61 6c 69 74 79 20 |r functi|onality |
|000050f0| 61 64 64 65 64 20 74 6f | 0a 74 68 65 6d 20 62 79 |added to|.them by|
|00005100| 20 74 68 65 20 72 65 73 | 70 65 63 74 69 76 65 20 | the res|pective |
|00005110| 76 65 6e 64 6f 72 73 2c | 20 62 75 74 20 74 68 65 |vendors,| but the|
|00005120| 73 65 20 65 78 74 65 6e | 73 69 6f 6e 73 20 61 72 |se exten|sions ar|
|00005130| 65 0a 76 65 6e 64 6f 72 | 2d 73 70 65 63 69 66 69 |e.vendor|-specifi|
|00005140| 63 20 61 6e 64 20 6e 6f | 74 20 70 6f 72 74 61 62 |c and no|t portab|
|00005150| 6c 65 2e 0a 0a 58 61 77 | 20 69 31 38 6e 20 69 73 |le...Xaw| i18n is|
|00005160| 20 62 61 73 65 64 20 75 | 70 6f 6e 20 58 31 31 52 | based u|pon X11R|
|00005170| 35 20 69 31 38 6e 2c 20 | 6e 6f 74 20 6f 6e 20 52 |5 i18n, |not on R|
|00005180| 36 2e 20 20 54 68 75 73 | 2c 20 69 74 20 73 75 70 |6. Thus|, it sup|
|00005190| 70 6f 72 74 73 20 52 35 | 0a 69 6e 70 75 74 20 6d |ports R5|.input m|
|000051a0| 65 74 68 6f 64 73 2e 20 | 20 52 36 20 61 64 64 65 |ethods. | R6 adde|
|000051b0| 64 20 4f 55 54 50 55 54 | 20 4d 45 54 48 4f 44 53 |d OUTPUT| METHODS|
|000051c0| 20 77 68 69 63 68 20 61 | 72 65 20 67 6f 6f 64 20 | which a|re good |
|000051d0| 66 6f 72 20 6d 61 69 6e | 6c 79 0a 52 2d 74 6f 2d |for main|ly.R-to-|
|000051e0| 4c 20 6c 61 6e 67 75 61 | 67 65 73 2c 20 61 6e 64 |L langua|ges, and|
|000051f0| 20 61 20 66 65 77 20 6e | 65 77 20 49 4e 50 55 54 | a few n|ew INPUT|
|00005200| 20 4d 45 54 48 4f 44 53 | 20 28 69 6e 2d 74 68 65 | METHODS| (in-the|
|00005210| 2d 73 70 6f 74 20 61 6e | 64 20 49 20 74 68 69 6e |-spot an|d I thin|
|00005220| 6b 0a 6f 6e 65 20 6f 74 | 68 65 72 29 20 74 68 61 |k.one ot|her) tha|
|00005230| 74 20 58 61 77 20 6d 69 | 67 68 74 20 6e 6f 74 20 |t Xaw mi|ght not |
|00005240| 73 75 70 70 6f 72 74 2e | 20 20 58 61 77 20 64 6f |support.| Xaw do|
|00005250| 65 73 20 73 75 70 70 6f | 72 74 0a 6f 76 65 72 2d |es suppo|rt.over-|
|00005260| 74 68 65 2d 73 70 6f 74 | 2c 20 6f 66 66 2d 74 68 |the-spot|, off-th|
|00005270| 65 2d 73 70 6f 74 2c 20 | 61 6e 64 20 72 6f 6f 74 |e-spot, |and root|
|00005280| 2d 77 69 6e 64 6f 77 20 | 63 6f 6e 76 65 72 73 69 |-window |conversi|
|00005290| 6f 6e 2e 20 20 54 6f 20 | 6d 61 6b 65 20 74 68 69 |on. To |make thi|
|000052a0| 73 0a 77 6f 72 6b 2c 20 | 79 6f 75 20 6d 69 67 68 |s.work, |you migh|
|000052b0| 74 20 6e 65 65 64 20 74 | 6f 20 73 65 74 20 22 2a |t need t|o set "*|
|000052c0| 69 6e 74 65 72 6e 61 74 | 69 6f 6e 61 6c 3a 20 54 |internat|ional: T|
|000052d0| 72 75 65 22 20 69 6e 20 | 79 6f 75 72 20 72 65 73 |rue" in |your res|
|000052e0| 6f 75 72 63 65 73 2e 0a | 20 0a 0a 46 4f 4f 54 4e |ources..| ..FOOTN|
|000052f0| 4f 54 45 3a 20 49 66 20 | 79 6f 75 20 63 61 6e 20 |OTE: If |you can |
|00005300| 68 61 76 65 20 63 6f 6d | 6d 65 6e 74 73 2f 63 6f |have com|ments/co|
|00005310| 72 72 65 63 74 69 6f 6e | 73 20 66 6f 72 20 74 68 |rrection|s for th|
|00005320| 69 73 20 73 65 63 74 69 | 6f 6e 20 61 6e 64 20 6f |is secti|on and o|
|00005330| 6e 0a 20 20 20 20 20 20 | 20 20 20 20 4f 70 65 6e |n. | Open|
|00005340| 4c 6f 6f 6b 2c 20 70 6c | 65 61 73 65 20 6c 65 74 |Look, pl|ease let|
|00005350| 20 6d 65 20 6b 6e 6f 77 | 2e 0a 0a 0a 37 2e 34 20 | me know|....7.4 |
|00005360| 49 31 38 4e 20 75 6e 64 | 65 72 20 58 31 31 52 36 |I18N und|er X11R6|
|00005370| 2c 20 47 65 6e 65 72 61 | 6c 20 49 6e 66 6f 72 6d |, Genera|l Inform|
|00005380| 61 74 69 6f 6e 0a 42 61 | 63 6b 67 72 6f 75 6e 64 |ation.Ba|ckground|
|00005390| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 66 72 6f | informa|tion fro|
|000053a0| 6d 20 74 68 65 20 58 31 | 31 52 36 20 61 6e 6e 6f |m the X1|1R6 anno|
|000053b0| 75 6e 63 65 6d 65 6e 74 | 3a 0a 49 6e 74 65 72 6e |uncement|:.Intern|
|000053c0| 61 74 69 6f 6e 61 6c 69 | 7a 61 74 69 6f 6e 20 28 |ationali|zation (|
|000053d0| 61 6c 73 6f 20 6b 6e 6f | 77 6e 20 61 73 20 49 31 |also kno|wn as I1|
|000053e0| 38 4e 2c 20 74 68 65 72 | 65 20 62 65 69 6e 67 20 |8N, ther|e being |
|000053f0| 31 38 20 6c 65 74 74 65 | 72 73 20 62 65 74 77 65 |18 lette|rs betwe|
|00005400| 65 6e 20 74 68 65 0a 69 | 20 61 6e 64 20 6e 29 20 |en the.i| and n) |
|00005410| 6f 66 20 74 68 65 20 58 | 20 57 69 6e 64 6f 77 20 |of the X| Window |
|00005420| 53 79 73 74 65 6d 2c 20 | 77 68 69 63 68 20 77 61 |System, |which wa|
|00005430| 73 20 6f 72 69 67 69 6e | 61 6c 6c 79 20 69 6e 74 |s origin|ally int|
|00005440| 72 6f 64 75 63 65 64 20 | 69 6e 20 52 65 6c 65 61 |roduced |in Relea|
|00005450| 73 65 0a 35 2c 20 68 61 | 73 20 62 65 65 6e 20 73 |se.5, ha|s been s|
|00005460| 69 67 6e 69 66 69 63 61 | 6e 74 6c 79 20 69 6d 70 |ignifica|ntly imp|
|00005470| 72 6f 76 65 64 20 69 6e | 20 52 36 2e 20 20 54 68 |roved in| R6. Th|
|00005480| 65 20 52 36 20 49 31 38 | 4e 20 61 72 63 68 69 74 |e R6 I18|N archit|
|00005490| 65 63 74 75 72 65 20 66 | 6f 6c 6c 6f 77 73 0a 74 |ecture f|ollows.t|
|000054a0| 68 61 74 20 69 6e 20 52 | 35 2c 20 62 65 69 6e 67 |hat in R|5, being|
|000054b0| 20 62 61 73 65 64 20 6f | 6e 20 74 68 65 20 6c 6f | based o|n the lo|
|000054c0| 63 61 6c 65 20 6d 6f 64 | 65 6c 20 75 73 65 64 20 |cale mod|el used |
|000054d0| 69 6e 20 41 4e 53 49 20 | 43 20 61 6e 64 20 50 4f |in ANSI |C and PO|
|000054e0| 53 49 58 2c 20 77 69 74 | 68 0a 6d 6f 73 74 20 6f |SIX, wit|h.most o|
|000054f0| 66 20 74 68 65 20 49 31 | 38 4e 20 63 61 70 61 62 |f the I1|8N capab|
|00005500| 69 6c 69 74 79 20 70 72 | 6f 76 69 64 65 64 20 62 |ility pr|ovided b|
|00005510| 79 20 58 6c 69 62 2e 20 | 20 52 35 20 69 6e 74 72 |y Xlib. | R5 intr|
|00005520| 6f 64 75 63 65 64 20 61 | 20 66 75 6e 64 61 6d 65 |oduced a| fundame|
|00005530| 6e 74 61 6c 0a 66 72 61 | 6d 65 77 6f 72 6b 20 66 |ntal.fra|mework f|
|00005540| 6f 72 20 69 6e 74 65 72 | 6e 61 74 69 6f 6e 61 6c |or inter|national|
|00005550| 69 7a 65 64 20 69 6e 70 | 75 74 20 61 6e 64 20 6f |ized inp|ut and o|
|00005560| 75 74 70 75 74 2e 20 20 | 49 74 20 63 6f 75 6c 64 |utput. |It could|
|00005570| 20 65 6e 61 62 6c 65 20 | 62 61 73 69 63 0a 6c 6f | enable |basic.lo|
|00005580| 63 61 6c 69 7a 61 74 69 | 6f 6e 20 66 6f 72 20 6c |calizati|on for l|
|00005590| 65 66 74 2d 74 6f 2d 72 | 69 67 68 74 2c 20 6e 6f |eft-to-r|ight, no|
|000055a0| 6e 2d 63 6f 6e 74 65 78 | 74 20 73 65 6e 73 69 74 |n-contex|t sensit|
|000055b0| 69 76 65 2c 20 38 2d 62 | 69 74 20 6f 72 20 6d 75 |ive, 8-b|it or mu|
|000055c0| 6c 74 69 2d 62 79 74 65 | 0a 63 6f 64 65 73 65 74 |lti-byte|.codeset|
|000055d0| 20 6c 61 6e 67 75 61 67 | 65 73 20 61 6e 64 20 63 | languag|es and c|
|000055e0| 75 6c 74 75 72 61 6c 20 | 63 6f 6e 76 65 6e 74 69 |ultural |conventi|
|000055f0| 6f 6e 73 2e 20 20 48 6f | 77 65 76 65 72 2c 20 69 |ons. Ho|wever, i|
|00005600| 74 20 64 69 64 20 6e 6f | 74 20 64 65 61 6c 20 77 |t did no|t deal w|
|00005610| 69 74 68 0a 61 6c 6c 20 | 70 6f 73 73 69 62 6c 65 |ith.all |possible|
|00005620| 20 6c 61 6e 67 75 61 67 | 65 73 20 61 6e 64 20 63 | languag|es and c|
|00005630| 75 6c 74 75 72 61 6c 20 | 63 6f 6e 76 65 6e 74 69 |ultural |conventi|
|00005640| 6f 6e 73 2e 20 20 52 36 | 20 61 6c 73 6f 20 64 6f |ons. R6| also do|
|00005650| 65 73 20 6e 6f 74 20 63 | 6f 76 65 72 20 61 6c 6c |es not c|over all|
|00005660| 0a 70 6f 73 73 69 62 6c | 65 20 6c 61 6e 67 75 61 |.possibl|e langua|
|00005670| 67 65 73 20 61 6e 64 20 | 63 75 6c 74 75 72 61 6c |ges and |cultural|
|00005680| 20 63 6f 6e 76 65 6e 74 | 69 6f 6e 73 2c 20 62 75 | convent|ions, bu|
|00005690| 74 20 52 36 20 63 6f 6e | 74 61 69 6e 73 20 73 75 |t R6 con|tains su|
|000056a0| 62 73 74 61 6e 74 69 61 | 6c 20 6e 65 77 0a 58 6c |bstantia|l new.Xl|
|000056b0| 69 62 20 69 6e 74 65 72 | 66 61 63 65 73 20 74 6f |ib inter|faces to|
|000056c0| 20 73 75 70 70 6f 72 74 | 20 49 31 38 4e 20 65 6e | support| I18N en|
|000056d0| 68 61 6e 63 65 6d 65 6e | 74 73 2c 20 69 6e 20 6f |hancemen|ts, in o|
|000056e0| 72 64 65 72 20 74 6f 20 | 65 6e 61 62 6c 65 20 61 |rder to |enable a|
|000056f0| 64 64 69 74 69 6f 6e 61 | 6c 0a 6c 61 6e 67 75 61 |dditiona|l.langua|
|00005700| 67 65 20 73 75 70 70 6f | 72 74 20 61 6e 64 20 6d |ge suppo|rt and m|
|00005710| 6f 72 65 20 70 72 61 63 | 74 69 63 61 6c 20 6c 6f |ore prac|tical lo|
|00005720| 63 61 6c 69 7a 61 74 69 | 6f 6e 2e 0a 0a 54 68 65 |calizati|on...The|
|00005730| 20 61 64 64 69 74 69 6f | 6e 61 6c 20 73 75 70 70 | additio|nal supp|
|00005740| 6f 72 74 20 69 73 20 6d | 61 69 6e 6c 79 20 69 6e |ort is m|ainly in|
|00005750| 20 74 68 65 20 61 72 65 | 61 20 6f 66 20 74 65 78 | the are|a of tex|
|00005760| 74 20 64 69 73 70 6c 61 | 79 2e 20 20 49 6e 20 6f |t displa|y. In o|
|00005770| 72 64 65 72 20 74 6f 0a | 73 75 70 70 6f 72 74 20 |rder to.|support |
|00005780| 6d 75 6c 74 69 2d 62 79 | 74 65 20 65 6e 63 6f 64 |multi-by|te encod|
|00005790| 69 6e 67 73 2c 20 74 68 | 65 20 63 6f 6e 63 65 70 |ings, th|e concep|
|000057a0| 74 20 6f 66 20 61 20 46 | 6f 6e 74 53 65 74 20 77 |t of a F|ontSet w|
|000057b0| 61 73 20 69 6e 74 72 6f | 64 75 63 65 64 20 69 6e |as intro|duced in|
|000057c0| 20 52 35 2e 0a 49 6e 20 | 52 36 2c 20 58 6c 69 62 | R5..In |R6, Xlib|
|000057d0| 20 65 6e 68 61 6e 63 65 | 73 20 74 68 69 73 20 63 | enhance|s this c|
|000057e0| 6f 6e 63 65 70 74 20 74 | 6f 20 61 20 6d 6f 72 65 |oncept t|o a more|
|000057f0| 20 67 65 6e 65 72 61 6c | 69 7a 65 64 20 6e 6f 74 | general|ized not|
|00005800| 69 6f 6e 20 6f 66 20 6f | 75 74 70 75 74 0a 6d 65 |ion of o|utput.me|
|00005810| 74 68 6f 64 73 20 61 6e | 64 20 6f 75 74 70 75 74 |thods an|d output|
|00005820| 20 63 6f 6e 74 65 78 74 | 73 2e 20 20 4a 75 73 74 | context|s. Just|
|00005830| 20 61 73 20 69 6e 70 75 | 74 20 6d 65 74 68 6f 64 | as inpu|t method|
|00005840| 73 20 61 6e 64 20 69 6e | 70 75 74 20 63 6f 6e 74 |s and in|put cont|
|00005850| 65 78 74 73 20 73 75 70 | 2d 0a 70 6f 72 74 20 63 |exts sup|-.port c|
|00005860| 6f 6d 70 6c 65 78 20 74 | 65 78 74 20 69 6e 70 75 |omplex t|ext inpu|
|00005870| 74 2c 20 6f 75 74 70 75 | 74 20 6d 65 74 68 6f 64 |t, outpu|t method|
|00005880| 73 20 61 6e 64 20 6f 75 | 74 70 75 74 20 63 6f 6e |s and ou|tput con|
|00005890| 74 65 78 74 73 20 73 75 | 70 70 6f 72 74 20 63 6f |texts su|pport co|
|000058a0| 6d 70 6c 65 78 0a 61 6e | 64 20 6d 6f 72 65 20 69 |mplex.an|d more i|
|000058b0| 6e 74 65 6c 6c 69 67 65 | 6e 74 20 74 65 78 74 20 |ntellige|nt text |
|000058c0| 64 69 73 70 6c 61 79 2c | 20 64 65 61 6c 69 6e 67 |display,| dealing|
|000058d0| 20 6e 6f 74 20 6f 6e 6c | 79 20 77 69 74 68 20 6d | not onl|y with m|
|000058e0| 75 6c 74 69 70 6c 65 20 | 66 6f 6e 74 73 20 62 75 |ultiple |fonts bu|
|000058f0| 74 0a 61 6c 73 6f 20 77 | 69 74 68 20 63 6f 6e 74 |t.also w|ith cont|
|00005900| 65 78 74 20 64 65 70 65 | 6e 64 65 6e 63 69 65 73 |ext depe|ndencies|
|00005910| 2e 20 20 54 68 65 20 72 | 65 73 75 6c 74 20 69 73 |. The r|esult is|
|00005920| 20 61 20 67 65 6e 65 72 | 61 6c 20 66 72 61 6d 65 | a gener|al frame|
|00005930| 77 6f 72 6b 20 74 6f 20 | 65 6e 61 62 6c 65 0a 62 |work to |enable.b|
|00005940| 69 2d 64 69 72 65 63 74 | 69 6f 6e 61 6c 20 74 65 |i-direct|ional te|
|00005950| 78 74 20 61 6e 64 20 63 | 6f 6e 74 65 78 74 20 73 |xt and c|ontext s|
|00005960| 65 6e 73 69 74 69 76 65 | 20 74 65 78 74 20 64 69 |ensitive| text di|
|00005970| 73 70 6c 61 79 2e 0a 0a | 54 68 65 20 64 65 73 63 |splay...|The desc|
|00005980| 72 69 70 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 58 |ription |of the X|
|00005990| 31 31 52 36 20 69 6e 74 | 65 72 6e 61 74 69 6f 6e |11R6 int|ernation|
|000059a0| 61 6c 69 7a 61 74 69 6f | 6e 20 66 72 61 6d 65 77 |alizatio|n framew|
|000059b0| 6f 72 6b 20 69 73 0a 61 | 76 61 69 6c 61 62 6c 65 |ork is.a|vailable|
|000059c0| 20 76 69 61 20 61 6e 6f | 6e 79 6d 6f 75 73 20 66 | via ano|nymous f|
|000059d0| 74 70 20 66 72 6f 6d 20 | 66 74 70 2e 78 2e 6f 72 |tp from |ftp.x.or|
|000059e0| 67 20 69 6e 0a 2f 70 75 | 62 2f 52 36 75 6e 74 61 |g in./pu|b/R6unta|
|000059f0| 72 72 65 64 2f 78 63 2f | 64 6f 63 2f 73 70 65 63 |rred/xc/|doc/spec|
|00005a00| 73 2f 69 31 38 6e 2e 0a | 0a 0a 0a 38 2e 20 53 75 |s/i18n..|...8. Su|
|00005a10| 70 70 6f 72 74 69 6e 67 | 20 49 31 38 4e 20 4e 65 |pporting| I18N Ne|
|00005a20| 74 77 6f 72 6b 20 50 72 | 6f 74 6f 63 6f 6c 73 0a |twork Pr|otocols.|
|00005a30| 38 2e 31 20 4d 49 4d 45 | 0a 4d 49 4d 45 20 69 73 |8.1 MIME|.MIME is|
|00005a40| 20 73 70 65 63 69 66 69 | 65 64 20 69 6e 20 52 46 | specifi|ed in RF|
|00005a50| 43 20 31 35 32 31 20 61 | 6e 64 20 52 46 43 20 31 |C 1521 a|nd RFC 1|
|00005a60| 35 32 32 20 77 68 69 63 | 68 20 61 72 65 20 61 76 |522 whic|h are av|
|00005a70| 61 69 6c 61 62 6c 65 20 | 66 72 6f 6d 0a 66 74 70 |ailable |from.ftp|
|00005a80| 2e 75 75 2e 6e 65 74 2e | 20 20 54 68 65 72 65 20 |.uu.net.| There |
|00005a90| 69 73 20 61 6c 73 6f 20 | 61 20 4d 49 4d 45 20 46 |is also |a MIME F|
|00005aa0| 41 51 20 77 68 69 63 68 | 20 69 73 20 61 76 61 69 |AQ which| is avai|
|00005ab0| 6c 61 62 6c 65 20 76 69 | 61 20 61 6e 6f 6e 79 6d |lable vi|a anonym|
|00005ac0| 6f 75 73 0a 66 74 70 20 | 66 72 6f 6d 20 66 74 70 |ous.ftp |from ftp|
|00005ad0| 2e 69 63 73 2e 75 63 69 | 2e 65 64 75 20 69 6e 20 |.ics.uci|.edu in |
|00005ae0| 2f 6d 68 2f 63 6f 6e 74 | 72 69 62 2f 6d 75 6c 74 |/mh/cont|rib/mult|
|00005af0| 69 6d 65 64 69 61 2f 6d | 69 6d 65 2d 66 61 71 2e |imedia/m|ime-faq.|
|00005b00| 74 78 74 2e 67 7a 2e 0a | 28 54 68 69 73 20 66 69 |txt.gz..|(This fi|
|00005b10| 6c 65 20 69 73 20 69 6e | 20 63 6f 6d 70 72 65 73 |le is in| compres|
|00005b20| 73 65 64 20 66 6f 72 6d | 61 74 2e 20 59 6f 75 20 |sed form|at. You |
|00005b30| 77 69 6c 6c 20 6e 65 65 | 64 20 74 68 65 20 47 4e |will nee|d the GN|
|00005b40| 55 20 67 75 6e 7a 69 70 | 0a 70 72 6f 67 72 61 6d |U gunzip|.program|
|00005b50| 20 74 6f 20 64 65 63 6f | 6d 70 72 65 73 73 20 74 | to deco|mpress t|
|00005b60| 68 69 73 20 66 69 6c 65 | 2e 29 0a 0a 49 66 20 79 |his file|.)..If y|
|00005b70| 6f 75 20 77 61 6e 74 20 | 74 6f 20 77 72 69 74 65 |ou want |to write|
|00005b80| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 73 20 77 68 | applica|tions wh|
|00005b90| 69 63 68 20 73 75 70 70 | 6f 72 74 20 74 68 65 20 |ich supp|ort the |
|00005ba0| 4d 49 4d 45 20 70 72 6f | 74 6f 63 6f 6c 2c 0a 74 |MIME pro|tocol,.t|
|00005bb0| 68 65 72 65 20 61 72 65 | 20 73 65 76 65 72 61 6c |here are| several|
|00005bc0| 20 6c 69 62 72 61 72 69 | 65 73 2f 74 6f 6f 6c 73 | librari|es/tools|
|00005bd0| 20 77 68 69 63 68 20 63 | 61 6e 20 65 61 73 65 20 | which c|an ease |
|00005be0| 79 6f 75 72 20 74 61 73 | 6b 3a 0a 0a 0a 38 2e 31 |your tas|k:...8.1|
|00005bf0| 2e 31 20 6d 65 74 61 6d | 61 69 6c 0a 53 6f 75 72 |.1 metam|ail.Sour|
|00005c00| 63 65 20 66 6f 72 20 73 | 75 70 70 6f 72 74 69 6e |ce for s|upportin|
|00005c10| 67 20 4d 49 4d 45 20 28 | 74 68 65 20 60 6d 65 74 |g MIME (|the `met|
|00005c20| 61 6d 61 69 6c 27 20 70 | 61 63 6b 61 67 65 29 20 |amail' p|ackage) |
|00005c30| 69 6e 20 76 61 72 69 6f | 75 73 20 6d 61 69 6c 0a |in vario|us mail.|
|00005c40| 72 65 61 64 65 72 73 20 | 69 73 20 61 76 61 69 6c |readers |is avail|
|00005c50| 61 62 6c 65 20 76 69 61 | 20 61 6e 6f 6e 79 6d 6f |able via| anonymo|
|00005c60| 75 73 20 66 74 70 20 66 | 72 6f 6d 20 74 68 75 6d |us ftp f|rom thum|
|00005c70| 70 65 72 2e 62 65 6c 6c | 63 6f 72 65 2e 63 6f 6d |per.bell|core.com|
|00005c80| 20 69 6e 0a 2f 70 75 62 | 2f 6e 73 62 2e 20 20 54 | in./pub|/nsb. T|
|00005c90| 68 69 73 20 64 69 73 74 | 72 69 62 75 74 69 6f 6e |his dist|ribution|
|00005ca0| 20 63 6f 6e 73 69 73 74 | 73 20 6f 66 20 73 65 76 | consist|s of sev|
|00005cb0| 65 72 61 6c 20 75 74 69 | 6c 69 74 69 65 73 2c 20 |eral uti|lities, |
|00005cc0| 77 68 69 63 68 20 63 61 | 6e 0a 62 65 20 63 61 6c |which ca|n.be cal|
|00005cd0| 6c 65 64 20 62 79 20 4d | 49 4d 45 20 61 70 70 6c |led by M|IME appl|
|00005ce0| 69 63 61 74 69 6f 6e 73 | 20 74 6f 20 68 61 6e 64 |ications| to hand|
|00005cf0| 6c 65 20 4d 49 4d 45 20 | 74 79 70 65 73 2e 0a 0a |le MIME |types...|
|00005d00| 0a 38 2e 31 2e 32 20 4d | 49 4d 45 6c 74 0a 41 20 |.8.1.2 M|IMElt.A |
|00005d10| 22 6c 69 67 68 74 77 65 | 69 67 68 74 22 20 4d 49 |"lightwe|ight" MI|
|00005d20| 4d 45 20 6c 69 62 72 61 | 72 79 20 61 76 61 69 6c |ME libra|ry avail|
|00005d30| 61 62 6c 65 20 76 69 61 | 20 61 6e 6f 6e 20 66 74 |able via| anon ft|
|00005d40| 70 20 66 72 6f 6d 0a 6f | 73 6c 6f 6e 65 74 74 2e |p from.o|slonett.|
|00005d50| 6e 6f 3a 53 6f 66 74 77 | 61 72 65 2f 4d 73 44 6f |no:Softw|are/MsDo|
|00005d60| 73 2f 43 6f 6d 6d 2f 4f | 66 66 6c 69 6e 65 2f 6d |s/Comm/O|ffline/m|
|00005d70| 69 6d 65 6c 74 58 58 2e | 7a 69 70 20 0a 0a 49 74 |imeltXX.|zip ..It|
|00005d80| 20 69 73 20 73 6f 75 72 | 63 65 20 63 6f 64 65 20 | is sour|ce code |
|00005d90| 28 41 4e 53 49 20 43 29 | 20 70 61 63 6b 61 67 65 |(ANSI C)| package|
|00005da0| 64 20 61 73 20 61 20 6c | 69 62 72 61 72 79 20 74 |d as a l|ibrary t|
|00005db0| 6f 20 66 61 63 69 6c 69 | 74 61 74 65 0a 63 6f 6e |o facili|tate.con|
|00005dc0| 73 74 72 75 63 74 69 6f | 6e 20 6f 66 20 61 20 6c |structio|n of a l|
|00005dd0| 69 6d 69 74 65 64 20 4d | 49 4d 45 20 66 61 63 69 |imited M|IME faci|
|00005de0| 6c 69 74 79 20 28 6c 69 | 6d 69 74 65 64 20 3d 3d |lity (li|mited ==|
|00005df0| 20 68 61 6e 64 6c 69 6e | 67 20 6f 6e 6c 79 0a 63 | handlin|g only.c|
|00005e00| 68 61 72 61 63 74 65 72 | 2d 73 65 74 20 61 73 70 |haracter|-set asp|
|00005e10| 65 63 74 73 20 6f 66 20 | 4d 49 4d 45 2c 20 6e 6f |ects of |MIME, no|
|00005e20| 74 20 74 68 65 20 6d 75 | 6c 74 69 6d 65 64 69 61 |t the mu|ltimedia|
|00005e30| 2d 61 73 70 65 63 74 73 | 29 2e 20 20 49 74 0a 69 |-aspects|). It.i|
|00005e40| 6e 63 6c 75 64 65 73 20 | 68 6f 6f 6b 73 20 74 6f |ncludes |hooks to|
|00005e50| 20 72 65 63 6f 64 65 20 | 63 68 61 72 61 63 74 65 | recode |characte|
|00005e60| 72 20 73 65 74 73 20 69 | 6e 74 6f 20 77 68 61 74 |r sets i|nto what|
|00005e70| 65 76 65 72 20 73 79 73 | 74 65 6d 20 79 6f 75 20 |ever sys|tem you |
|00005e80| 61 72 65 0a 72 75 6e 6e | 69 6e 67 20 6f 66 66 20 |are.runn|ing off |
|00005e90| 28 65 2e 67 2e 20 20 69 | 66 20 79 6f 75 20 72 65 |(e.g. i|f you re|
|00005ea0| 61 64 20 6d 61 69 6c 20 | 6f 6e 20 61 20 4d 73 44 |ad mail |on a MsD|
|00005eb0| 6f 73 20 70 6c 61 74 66 | 6f 72 6d 20 75 73 69 6e |os platf|orm usin|
|00005ec0| 67 20 43 50 2d 38 35 30 | 2c 0a 4d 49 4d 45 6c 69 |g CP-850|,.MIMEli|
|00005ed0| 74 65 20 6d 61 79 20 62 | 65 20 73 65 74 20 75 70 |te may b|e set up|
|00005ee0| 20 73 6f 20 74 68 61 74 | 20 51 55 4f 54 45 44 2d | so that| QUOTED-|
|00005ef0| 50 52 49 4e 54 41 42 4c | 45 20 49 53 4f 20 4c 61 |PRINTABL|E ISO La|
|00005f00| 74 69 6e 20 31 20 69 73 | 20 72 65 63 6f 64 65 64 |tin 1 is| recoded|
|00005f10| 0a 69 6e 74 6f 20 43 50 | 2d 38 35 30 20 66 6f 72 |.into CP|-850 for|
|00005f20| 20 72 65 61 64 69 6e 67 | 20 61 6e 64 20 73 61 76 | reading| and sav|
|00005f30| 69 6e 67 20 74 6f 20 66 | 69 6c 65 29 2e 0a 20 0a |ing to f|ile).. .|
|00005f40| 49 74 27 73 20 6d 61 69 | 6e 20 75 73 65 20 69 73 |It's mai|n use is|
|00005f50| 20 74 6f 20 70 72 6f 76 | 69 64 65 20 70 72 6f 67 | to prov|ide prog|
|00005f60| 72 61 6d 6d 65 72 73 20 | 6f 66 20 73 6f 2d 63 61 |rammers |of so-ca|
|00005f70| 6c 6c 65 64 20 22 6f 66 | 66 2d 6c 69 6e 65 20 0a |lled "of|f-line .|
|00005f80| 72 65 61 64 65 72 73 22 | 20 28 75 73 65 64 20 62 |readers"| (used b|
|00005f90| 79 20 75 73 65 72 73 20 | 77 68 6f 20 61 63 63 65 |y users |who acce|
|00005fa0| 73 73 20 49 6e 74 65 72 | 6e 65 74 20 6d 61 69 6c |ss Inter|net mail|
|00005fb0| 20 74 68 72 6f 75 67 68 | 20 64 69 61 6c 2d 75 70 | through| dial-up|
|00005fc0| 20 0a 73 65 72 76 69 63 | 65 20 70 72 6f 76 69 64 | .servic|e provid|
|00005fd0| 65 72 73 29 20 77 69 74 | 68 20 74 68 65 20 74 6f |ers) wit|h the to|
|00005fe0| 6f 6c 73 20 6e 65 65 64 | 65 64 20 74 6f 20 69 6e |ols need|ed to in|
|00005ff0| 63 6c 75 64 65 20 70 72 | 6f 70 65 72 20 73 75 70 |clude pr|oper sup|
|00006000| 70 6f 72 74 20 66 6f 72 | 20 0a 51 55 4f 54 45 44 |port for| .QUOTED|
|00006010| 2d 50 52 49 4e 54 41 42 | 4c 45 20 65 6e 63 6f 64 |-PRINTAB|LE encod|
|00006020| 69 6e 67 20 69 6e 20 74 | 68 65 69 72 20 70 72 6f |ing in t|heir pro|
|00006030| 64 75 63 74 2e 0a 20 0a | 54 68 65 20 61 72 63 68 |duct.. .|The arch|
|00006040| 69 76 65 20 61 6c 73 6f | 20 63 6f 6e 74 61 69 6e |ive also| contain|
|00006050| 73 20 61 20 63 6f 75 70 | 6c 65 20 6f 66 20 73 61 |s a coup|le of sa|
|00006060| 6d 70 6c 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |mple app|lication|
|00006070| 73 20 74 68 61 74 20 0a | 64 65 6d 6f 6e 73 74 72 |s that .|demonstr|
|00006080| 61 74 65 73 20 68 6f 77 | 20 74 68 65 20 6c 69 62 |ates how| the lib|
|00006090| 72 61 72 79 20 6d 61 79 | 20 62 65 20 75 73 65 64 |rary may| be used|
|000060a0| 2e 20 20 55 4e 4d 49 4d | 45 20 69 73 20 61 20 73 |. UNMIM|E is a s|
|000060b0| 74 61 6e 64 2d 61 6c 6f | 6e 65 20 0a 75 74 69 6c |tand-alo|ne .util|
|000060c0| 69 74 79 20 74 6f 20 64 | 65 63 6f 64 65 20 4d 49 |ity to d|ecode MI|
|000060d0| 4d 45 2d 65 6e 63 6f 64 | 65 64 20 6d 65 73 73 61 |ME-encod|ed messa|
|000060e0| 67 65 73 20 28 65 2e 67 | 2e 20 69 74 20 77 6f 72 |ges (e.g|. it wor|
|000060f0| 6b 73 20 6c 69 6b 65 20 | 55 55 44 45 43 4f 44 45 |ks like |UUDECODE|
|00006100| 0a 66 6f 72 20 62 69 6e | 61 72 79 20 66 69 6c 65 |.for bin|ary file|
|00006110| 73 20 77 69 74 68 20 42 | 41 53 45 36 34 20 65 6e |s with B|ASE64 en|
|00006120| 63 6f 64 69 6e 67 29 2c | 20 53 45 4e 44 4d 49 4d |coding),| SENDMIM|
|00006130| 45 20 69 73 20 61 20 73 | 69 6d 70 6c 65 20 75 74 |E is a s|imple ut|
|00006140| 69 6c 69 74 79 0a 74 6f | 20 73 65 6e 64 20 4d 49 |ility.to| send MI|
|00006150| 4d 45 2d 65 6e 63 6f 64 | 65 64 20 6d 65 73 73 61 |ME-encod|ed messa|
|00006160| 67 65 73 20 69 66 20 79 | 6f 75 72 20 73 65 72 76 |ges if y|our serv|
|00006170| 69 63 65 20 70 72 6f 76 | 69 64 65 72 20 64 6f 65 |ice prov|ider doe|
|00006180| 73 6e 27 74 20 68 61 76 | 65 0a 50 49 4e 45 20 6f |sn't hav|e.PINE o|
|00006190| 72 20 73 69 6d 69 6c 61 | 72 20 74 6f 6f 6c 73 2e |r simila|r tools.|
|000061a0| 0a 0a 54 68 65 20 63 75 | 72 72 65 6e 74 20 76 65 |..The cu|rrent ve|
|000061b0| 72 73 69 6f 6e 20 28 32 | 2e 31 29 20 69 73 20 6c |rsion (2|.1) is l|
|000061c0| 69 6d 69 74 65 64 20 74 | 6f 20 63 68 61 72 61 63 |imited t|o charac|
|000061d0| 74 65 72 20 73 65 74 20 | 69 73 73 75 65 73 2e 20 |ter set |issues. |
|000061e0| 20 49 20 61 6d 0a 61 62 | 6f 75 74 20 74 6f 20 72 | I am.ab|out to r|
|000061f0| 65 6c 65 61 73 65 20 76 | 65 72 73 69 6f 6e 20 32 |elease v|ersion 2|
|00006200| 2e 32 2c 20 77 68 69 63 | 68 20 77 69 6c 6c 20 73 |.2, whic|h will s|
|00006210| 75 70 70 6f 72 74 20 61 | 64 64 69 74 69 6f 6e 61 |upport a|dditiona|
|00006220| 6c 20 0a 43 6f 6e 74 65 | 6e 74 2d 54 79 70 65 73 |l .Conte|nt-Types|
|00006230| 20 28 65 2e 67 2e 20 22 | 61 70 70 6c 69 63 61 74 | (e.g. "|applicat|
|00006240| 69 6f 6e 2f 6f 63 74 65 | 74 2d 73 74 72 65 61 6d |ion/octe|t-stream|
|00006250| 22 29 2e 0a 0a 0a 0a 39 | 2e 20 50 72 6f 67 72 61 |").....9|. Progra|
|00006260| 6d 6d 69 6e 67 20 69 6e | 20 50 72 6f 6c 6f 67 20 |mming in| Prolog |
|00006270| 0a 53 49 43 53 74 75 73 | 20 50 72 6f 6c 6f 67 20 |.SICStus| Prolog |
|00006280| 61 63 63 65 70 74 73 20 | 49 53 4f 20 63 68 61 72 |accepts |ISO char|
|00006290| 61 63 74 65 72 73 20 61 | 73 20 70 61 72 74 20 6f |acters a|s part o|
|000062a0| 66 20 61 74 6f 6d 73 2c | 20 73 6f 20 79 6f 75 20 |f atoms,| so you |
|000062b0| 63 61 6e 0a 65 76 65 6e | 20 64 65 66 69 6e 65 20 |can.even| define |
|000062c0| 67 6f 61 6c 20 6e 61 6d | 65 73 20 63 6f 6e 74 61 |goal nam|es conta|
|000062d0| 69 6e 69 6e 67 20 61 63 | 63 65 6e 74 65 64 20 63 |ining ac|cented c|
|000062e0| 68 61 72 61 63 74 65 72 | 73 2e 20 20 49 2f 4f 20 |haracter|s. I/O |
|000062f0| 6f 66 20 38 20 62 69 74 | 0a 63 68 61 72 61 63 74 |of 8 bit|.charact|
|00006300| 65 72 73 20 69 73 20 28 | 6f 62 76 69 6f 75 73 6c |ers is (|obviousl|
|00006310| 79 29 20 61 6c 73 6f 20 | 73 75 70 70 6f 72 74 65 |y) also |supporte|
|00006320| 64 2e 0a 0a 0a 0a 31 30 | 2e 20 49 53 4f 20 38 38 |d.....10|. ISO 88|
|00006330| 35 39 2d 31 20 6f 6e 20 | 6e 6f 6e 2d 55 4e 49 58 |59-1 on |non-UNIX|
|00006340| 20 73 79 73 74 65 6d 73 | 0a 31 30 2e 31 20 4d 53 | systems|.10.1 MS|
|00006350| 2d 44 4f 53 0a 4d 53 2d | 44 4f 53 20 67 65 6e 65 |-DOS.MS-|DOS gene|
|00006360| 72 61 6c 6c 79 20 75 73 | 65 73 20 69 74 73 20 6f |rally us|es its o|
|00006370| 77 6e 20 63 68 61 72 61 | 63 74 65 72 73 20 73 65 |wn chara|cters se|
|00006380| 74 2e 20 54 68 65 72 65 | 20 61 72 65 20 73 65 76 |t. There| are sev|
|00006390| 65 72 61 6c 20 63 6f 64 | 65 0a 70 61 67 65 73 20 |eral cod|e.pages |
|000063a0| 28 6f 6e 65 20 77 69 74 | 68 20 74 68 65 20 73 61 |(one wit|h the sa|
|000063b0| 6d 65 20 73 79 6d 62 6f | 6c 73 20 61 73 20 49 53 |me symbo|ls as IS|
|000063c0| 4f 20 38 38 35 39 2d 31 | 2c 20 61 6c 62 65 69 74 |O 8859-1|, albeit|
|000063d0| 20 61 74 20 64 69 66 66 | 65 72 65 6e 74 0a 63 68 | at diff|erent.ch|
|000063e0| 61 72 61 63 74 65 72 20 | 63 6f 64 65 20 70 6f 73 |aracter |code pos|
|000063f0| 69 74 69 6f 6e 73 2c 20 | 77 68 69 63 68 20 63 61 |itions, |which ca|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.